增加默认字段

Test_HIR_Net8
hang 2025-03-28 09:54:57 +08:00
parent ade2a25fc4
commit 80805bde06
4 changed files with 18809 additions and 0 deletions

View File

@ -87,7 +87,11 @@ public class User : BaseFullAuditEntity
public Guid UserTypeId { get; set; }
#region HIR
public string CheckCode { get; set; } = string.Empty;
//目前是tj医院
public string ThirdUserCode { get; set; } = string.Empty;
#endregion
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class tjAddUserCode : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ThirdUserCode",
table: "User",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ThirdUserCode",
table: "User");
}
}
}

View File

@ -13148,6 +13148,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<bool>("SuperAdmin")
.HasColumnType("bit");
b.Property<string>("ThirdUserCode")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<DateTime>("UpdateTime")
.HasColumnType("datetime2");