add note to profile insignia

This commit is contained in:
Suphonchai Phoonsawat 2024-03-01 11:12:15 +07:00
parent adada88230
commit 1393969516
5 changed files with 17202 additions and 0 deletions

View file

@ -36,5 +36,8 @@ namespace BMA.EHR.Domain.Models.HR
public DateTime? RefCommandDate { get; set; }
public virtual List<ProfileInsigniaHistory> ProfileInsigniaHistorys { get; set; } = new List<ProfileInsigniaHistory>();
public virtual Profile? Profile { get; set; }
[Comment("หมายเหตุ")]
public string? Note { get; set; }
}
}

View file

@ -30,5 +30,8 @@ namespace BMA.EHR.Domain.Models.HR
public string? Insignia { get; set; }
public Guid? InsigniaId { get; set; }
public virtual ProfileInsignia? ProfileInsignia { get; set; }
[Comment("หมายเหตุ")]
public string? Note { get; set; }
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,42 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddFieldsNotetoProfileInsignia : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Note",
table: "ProfileInsignias",
type: "longtext",
nullable: true,
comment: "หมายเหตุ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Note",
table: "ProfileInsigniaHistorys",
type: "longtext",
nullable: true,
comment: "หมายเหตุ")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Note",
table: "ProfileInsignias");
migrationBuilder.DropColumn(
name: "Note",
table: "ProfileInsigniaHistorys");
}
}
}

View file

@ -3928,6 +3928,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(20)")
.HasComment("ลำดับที่");
b.Property<string>("Note")
.HasColumnType("longtext")
.HasComment("หมายเหตุ");
b.Property<string>("Page")
.HasMaxLength(30)
.HasColumnType("varchar(30)")
@ -4048,6 +4052,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("varchar(20)")
.HasComment("ลำดับที่");
b.Property<string>("Note")
.HasColumnType("longtext")
.HasComment("หมายเหตุ");
b.Property<string>("Page")
.HasMaxLength(30)
.HasColumnType("varchar(30)")