修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6306c6752a
commit
ae38c84ef7
|
@ -3,7 +3,7 @@ namespace IRaCIS.Core.Domain.Models;
|
|||
|
||||
[Comment("医生 - 简历|证书 文档表")]
|
||||
[Table("Attachment")]
|
||||
public class Attachment : BaseAddAuditEntity
|
||||
public class Attachment : BaseFullAuditEntity
|
||||
{
|
||||
|
||||
[JsonIgnore]
|
||||
|
|
19162
IRaCIS.Core.Infra.EFCore/Migrations/20250317082944_updateTime.Designer.cs
generated
Normal file
19162
IRaCIS.Core.Infra.EFCore/Migrations/20250317082944_updateTime.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateTime : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "UpdateTime",
|
||||
table: "Attachment",
|
||||
type: "datetime2",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "UpdateUserId",
|
||||
table: "Attachment",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "UpdateTime",
|
||||
table: "Attachment");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "UpdateUserId",
|
||||
table: "Attachment");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -76,6 +76,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
.HasColumnType("nvarchar(400)")
|
||||
.HasComment("文件类型名");
|
||||
|
||||
b.Property<DateTime>("UpdateTime")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid>("UpdateUserId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CreateUserId");
|
||||
|
|
Loading…
Reference in New Issue