add note to profile insignia
This commit is contained in:
parent
adada88230
commit
1393969516
5 changed files with 17202 additions and 0 deletions
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
17146
BMA.EHR.Infrastructure/Migrations/20240301032609_Add Fields Note to ProfileInsignia.Designer.cs
generated
Normal file
17146
BMA.EHR.Infrastructure/Migrations/20240301032609_Add Fields Note to ProfileInsignia.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue