Add Deployment channel

This commit is contained in:
Suphonchai Phoonsawat 2023-06-28 10:32:16 +07:00
parent 68dab7a727
commit 00f795483a
5 changed files with 9453 additions and 104 deletions

View file

@ -0,0 +1,16 @@
using BMA.EHR.Domain.Models.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BMA.EHR.Domain.Models.Commands
{
public class DeploymentChannel : EntityBase
{
public bool IsSendInbox { get; set; } = true;
public bool IsSendEmail { get; set; } = true;
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,46 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddDeploymentChannel : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DeploymentChannels",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"),
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"),
CreatedUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล")
.Annotation("MySql:CharSet", "utf8mb4"),
LastUpdatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"),
LastUpdateUserId = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด")
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล")
.Annotation("MySql:CharSet", "utf8mb4"),
LastUpdateFullName = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด")
.Annotation("MySql:CharSet", "utf8mb4"),
IsSendInbox = table.Column<bool>(type: "tinyint(1)", nullable: false),
IsSendEmail = table.Column<bool>(type: "tinyint(1)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DeploymentChannels", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DeploymentChannels");
}
}
}

View file

@ -19,6 +19,64 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasAnnotation("ProductVersion", "7.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("BMA.EHR.Domain.Models.Commands.DeploymentChannel", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property<string>("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property<string>("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<bool>("IsSendEmail")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsSendInbox")
.HasColumnType("tinyint(1)");
b.Property<string>("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property<string>("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property<DateTime?>("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.HasKey("Id");
b.ToTable("DeploymentChannels", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b =>
{
b.Property<Guid>("Id")
@ -50,7 +108,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Documents");
b.ToTable("Documents", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b =>
@ -106,7 +164,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("LimitLeaves");
b.ToTable("LimitLeaves", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b =>
@ -172,7 +230,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("TypeLeaveId");
b.ToTable("LimitTypeLeaves");
b.ToTable("LimitTypeLeaves", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b =>
@ -646,7 +704,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("LimitLeaveId");
b.ToTable("Profiles");
b.ToTable("Profiles", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b =>
@ -727,7 +785,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAbilitys");
b.ToTable("ProfileAbilitys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b =>
@ -808,7 +866,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileAbilityId");
b.ToTable("ProfileAbilityHistorys");
b.ToTable("ProfileAbilityHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b =>
@ -937,7 +995,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAddressHistories");
b.ToTable("ProfileAddressHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b =>
@ -1026,7 +1084,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAssessments");
b.ToTable("ProfileAssessments", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b =>
@ -1115,7 +1173,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileAssessmentId");
b.ToTable("ProfileAssessmentHistorys");
b.ToTable("ProfileAssessmentHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b =>
@ -1177,7 +1235,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAvatarHistories");
b.ToTable("ProfileAvatarHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b =>
@ -1257,7 +1315,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileCertificates");
b.ToTable("ProfileCertificates", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b =>
@ -1337,7 +1395,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileCertificateId");
b.ToTable("ProfileCertificateHistorys");
b.ToTable("ProfileCertificateHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b =>
@ -1422,7 +1480,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileChangeNames");
b.ToTable("ProfileChangeNames", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b =>
@ -1507,7 +1565,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileChangeNameId");
b.ToTable("ProfileChangeNameHistorys");
b.ToTable("ProfileChangeNameHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b =>
@ -1584,7 +1642,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileChildrens");
b.ToTable("ProfileChildrens", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b =>
@ -1666,7 +1724,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileFamilyHistoryId");
b.ToTable("ProfileChildrenHistories");
b.ToTable("ProfileChildrenHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b =>
@ -1706,7 +1764,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileCoupleHistory");
b.ToTable("ProfileCoupleHistory", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b =>
@ -1745,7 +1803,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileCurrentAddressHistories");
b.ToTable("ProfileCurrentAddressHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b =>
@ -1822,7 +1880,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileDisciplines");
b.ToTable("ProfileDisciplines", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b =>
@ -1899,7 +1957,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileDisciplineId");
b.ToTable("ProfileDisciplineHistorys");
b.ToTable("ProfileDisciplineHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b =>
@ -1972,7 +2030,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileDutys");
b.ToTable("ProfileDutys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b =>
@ -2045,7 +2103,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileDutyId");
b.ToTable("ProfileDutyHistorys");
b.ToTable("ProfileDutyHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b =>
@ -2174,7 +2232,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileEducations");
b.ToTable("ProfileEducations", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b =>
@ -2303,7 +2361,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileEducationId");
b.ToTable("ProfileEducationHistorys");
b.ToTable("ProfileEducationHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b =>
@ -2428,7 +2486,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileFamilyHistory");
b.ToTable("ProfileFamilyHistory", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b =>
@ -2468,7 +2526,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileFatherHistory");
b.ToTable("ProfileFatherHistory", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b =>
@ -2609,7 +2667,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileGovernmentHistory");
b.ToTable("ProfileGovernmentHistory", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b =>
@ -2752,7 +2810,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileHistory");
b.ToTable("ProfileHistory", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b =>
@ -2823,7 +2881,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileHonors");
b.ToTable("ProfileHonors", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b =>
@ -2894,7 +2952,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileHonorId");
b.ToTable("ProfileHonorHistorys");
b.ToTable("ProfileHonorHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b =>
@ -3004,7 +3062,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileInsignias");
b.ToTable("ProfileInsignias", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b =>
@ -3114,7 +3172,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileInsigniaId");
b.ToTable("ProfileInsigniaHistorys");
b.ToTable("ProfileInsigniaHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b =>
@ -3204,7 +3262,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("TypeLeaveId");
b.ToTable("ProfileLeaves");
b.ToTable("ProfileLeaves", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b =>
@ -3294,7 +3352,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("TypeLeaveId");
b.ToTable("ProfileLeaveHistorys");
b.ToTable("ProfileLeaveHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b =>
@ -3334,7 +3392,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileMotherHistory");
b.ToTable("ProfileMotherHistory", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b =>
@ -3403,7 +3461,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileNopaids");
b.ToTable("ProfileNopaids", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b =>
@ -3472,7 +3530,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileNopaidId");
b.ToTable("ProfileNopaidHistorys");
b.ToTable("ProfileNopaidHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b =>
@ -3532,7 +3590,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileOrganizations");
b.ToTable("ProfileOrganizations", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b =>
@ -3597,7 +3655,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileOthers");
b.ToTable("ProfileOthers", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b =>
@ -3662,7 +3720,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileOtherId");
b.ToTable("ProfileOtherHistorys");
b.ToTable("ProfileOtherHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b =>
@ -3736,7 +3794,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfilePapers");
b.ToTable("ProfilePapers", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b =>
@ -3775,7 +3833,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileRegistrationAddressHistories");
b.ToTable("ProfileRegistrationAddressHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b =>
@ -3916,7 +3974,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileSalaries");
b.ToTable("ProfileSalaries", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b =>
@ -4111,7 +4169,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileSalaryId");
b.ToTable("ProfileSalaryHistories");
b.ToTable("ProfileSalaryHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b =>
@ -4128,7 +4186,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryOrganizations");
b.ToTable("ProfileSalaryOrganizations", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b =>
@ -4150,7 +4208,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionId");
b.ToTable("ProfileSalaryPositions");
b.ToTable("ProfileSalaryPositions", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b =>
@ -4167,7 +4225,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryPositionLevels");
b.ToTable("ProfileSalaryPositionLevels", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b =>
@ -4184,7 +4242,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryPositionsNumbers");
b.ToTable("ProfileSalaryPositionsNumbers", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b =>
@ -4201,7 +4259,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryPositionTypes");
b.ToTable("ProfileSalaryPositionTypes", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b =>
@ -4305,7 +4363,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileTrainings");
b.ToTable("ProfileTrainings", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b =>
@ -4409,7 +4467,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileTrainingId");
b.ToTable("ProfileTrainingHistorys");
b.ToTable("ProfileTrainingHistorys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b =>
@ -4465,7 +4523,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("TypeLeaves");
b.ToTable("TypeLeaves", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b =>
@ -4529,7 +4587,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("BloodGroups");
b.ToTable("BloodGroups", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b =>
@ -4598,7 +4656,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProvinceId");
b.ToTable("Districts");
b.ToTable("Districts", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b =>
@ -4662,7 +4720,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("EducationLevels");
b.ToTable("EducationLevels", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b =>
@ -4726,7 +4784,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Genders");
b.ToTable("Genders", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b =>
@ -4811,7 +4869,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Holidays");
b.ToTable("Holidays", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b =>
@ -4898,7 +4956,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("InsigniaTypeId");
b.ToTable("Insignias");
b.ToTable("Insignias", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b =>
@ -4962,7 +5020,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("InsigniaTypes");
b.ToTable("InsigniaTypes", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b =>
@ -5026,7 +5084,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationAgencys");
b.ToTable("OrganizationAgencys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b =>
@ -5090,7 +5148,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationFaxs");
b.ToTable("OrganizationFaxs", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b =>
@ -5154,7 +5212,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationGovernmentAgencys");
b.ToTable("OrganizationGovernmentAgencys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b =>
@ -5218,7 +5276,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationLevels");
b.ToTable("OrganizationLevels", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b =>
@ -5288,7 +5346,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationOrganizations");
b.ToTable("OrganizationOrganizations", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b =>
@ -5371,7 +5429,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationShortNames");
b.ToTable("OrganizationShortNames", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b =>
@ -5435,7 +5493,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationStatuses");
b.ToTable("OrganizationStatuses", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b =>
@ -5499,7 +5557,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationTelExternals");
b.ToTable("OrganizationTelExternals", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b =>
@ -5563,7 +5621,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationTelInternals");
b.ToTable("OrganizationTelInternals", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b =>
@ -5627,7 +5685,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationTypes");
b.ToTable("OrganizationTypes", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b =>
@ -5691,7 +5749,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PhysicalStatuses");
b.ToTable("PhysicalStatuses", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b =>
@ -5793,7 +5851,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionTypeId");
b.ToTable("Positions");
b.ToTable("Positions", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b =>
@ -5857,7 +5915,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeGroups");
b.ToTable("PositionEmployeeGroups", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b =>
@ -5921,7 +5979,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeLevels");
b.ToTable("PositionEmployeeLevels", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b =>
@ -5985,7 +6043,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeLines");
b.ToTable("PositionEmployeeLines", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b =>
@ -6055,7 +6113,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeePositions");
b.ToTable("PositionEmployeePositions", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b =>
@ -6125,7 +6183,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeePositionSides");
b.ToTable("PositionEmployeePositionSides", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b =>
@ -6189,7 +6247,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeStatuses");
b.ToTable("PositionEmployeeStatuses", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b =>
@ -6253,7 +6311,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionExecutives");
b.ToTable("PositionExecutives", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b =>
@ -6323,7 +6381,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionExecutiveSides");
b.ToTable("PositionExecutiveSides", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b =>
@ -6399,7 +6457,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionLevels");
b.ToTable("PositionLevels", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b =>
@ -6463,7 +6521,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionLines");
b.ToTable("PositionLines", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b =>
@ -6533,7 +6591,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionPaths");
b.ToTable("PositionPaths", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b =>
@ -6603,7 +6661,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionPathSides");
b.ToTable("PositionPathSides", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b =>
@ -6667,7 +6725,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionStatuss");
b.ToTable("PositionStatuss", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b =>
@ -6731,7 +6789,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionTypes");
b.ToTable("PositionTypes", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b =>
@ -6795,7 +6853,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Prefixes");
b.ToTable("Prefixes", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b =>
@ -6859,7 +6917,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Provinces");
b.ToTable("Provinces", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b =>
@ -6923,7 +6981,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Relationships");
b.ToTable("Relationships", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b =>
@ -6987,7 +7045,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Religions");
b.ToTable("Religions", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b =>
@ -7058,7 +7116,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Royals");
b.ToTable("Royals", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b =>
@ -7122,7 +7180,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("RoyalHierarchys");
b.ToTable("RoyalHierarchys", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b =>
@ -7186,7 +7244,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("RoyalTypes");
b.ToTable("RoyalTypes", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b =>
@ -7262,7 +7320,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("DistrictId");
b.ToTable("SubDistricts");
b.ToTable("SubDistricts", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b =>
@ -7326,7 +7384,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionMasterId");
b.ToTable("AvailablePositionLevels");
b.ToTable("AvailablePositionLevels", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b =>
@ -7463,7 +7521,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ParentId");
b.ToTable("Organizations");
b.ToTable("Organizations", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b =>
@ -7544,7 +7602,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionMasterId");
b.ToTable("OrganizationPositions");
b.ToTable("OrganizationPositions", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b =>
@ -7608,7 +7666,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationPublishHistories");
b.ToTable("OrganizationPublishHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b =>
@ -7731,7 +7789,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionMasters");
b.ToTable("PositionMasters", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b =>
@ -7859,7 +7917,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionMasterEntityId");
b.ToTable("PositionMasterHistoryEntity");
b.ToTable("PositionMasterHistoryEntity", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b =>
@ -7922,7 +7980,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionNumbers");
b.ToTable("PositionNumbers", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b =>
@ -7982,7 +8040,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("OrganizationPositionId");
b.ToTable("ProfilePositions");
b.ToTable("ProfilePositions", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b =>
@ -8150,7 +8208,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Report2s");
b.ToTable("Report2s", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b =>
@ -8205,7 +8263,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Report2DetailHistories");
b.ToTable("Report2DetailHistories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b =>
@ -8398,7 +8456,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("Report2DetailHistoryId");
b.ToTable("Report2Histories");
b.ToTable("Report2Histories", (string)null);
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b =>

View file

@ -1,4 +1,5 @@
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Domain.Models.Commands;
using BMA.EHR.Domain.Models.Documents;
using BMA.EHR.Domain.Models.HR;
using BMA.EHR.Domain.Models.MetaData;
@ -236,6 +237,12 @@ namespace BMA.EHR.Infrastructure.Persistence
#endregion
#region " Command "
public DbSet<DeploymentChannel> DeploymentChannels { get; set; }
#endregion
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options) : base(options)
{
}