增加默认字段
parent
ade2a25fc4
commit
80805bde06
|
@ -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
|
||||
}
|
||||
|
|
18770
IRaCIS.Core.Infra.EFCore/Migrations/20250328015326_tjAddUserCode.Designer.cs
generated
Normal file
18770
IRaCIS.Core.Infra.EFCore/Migrations/20250328015326_tjAddUserCode.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue