add field DisciplineDirectors.RootDnaId
This commit is contained in:
parent
23d86f632e
commit
71dc9f05d3
4 changed files with 3713 additions and 0 deletions
|
|
@ -27,6 +27,9 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
|
||||
[Comment("คุณวุฒิ")]
|
||||
public string? Qualification { get; set; } = string.Empty;
|
||||
|
||||
[Comment("RootDnaId")]
|
||||
public Guid? RootDnaId { get; set; }
|
||||
public virtual List<DisciplineInvestigate_Director> DisciplineInvestigate_Directors { get; set; } = new List<DisciplineInvestigate_Director>();
|
||||
public virtual List<DisciplineDisciplinary_DirectorInvestigate> DisciplineDisciplinary_DirectorInvestigates { get; set; } = new List<DisciplineDisciplinary_DirectorInvestigate>();
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class update_table_DisciplineDirector_add_RootDnaId : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "RootDnaId",
|
||||
table: "DisciplineDirectors",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
comment: "RootDnaId",
|
||||
collation: "ascii_general_ci");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RootDnaId",
|
||||
table: "DisciplineDirectors");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -842,6 +842,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("คุณวุฒิ");
|
||||
|
||||
b.Property<Guid?>("RootDnaId")
|
||||
.HasColumnType("char(36)")
|
||||
.HasComment("RootDnaId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DisciplineDirectors");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue