Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe
This commit is contained in:
commit
e0c0525dd8
@ -86,8 +86,13 @@ namespace APT.BaseData.Domain.Entities.FM
|
|||||||
public int DEPARTMENT_STATUS { get; set; }
|
public int DEPARTMENT_STATUS { get; set; }
|
||||||
|
|
||||||
[Description("生产单元")]
|
[Description("生产单元")]
|
||||||
public virtual ICollection<T_FM_DEPARTMENT_PRODUCTION_UNIT> Nav_ProdutionUnit { get; set; }
|
public virtual ICollection<T_FM_DEPARTMENT_PRODUCTION_UNIT> Nav_ProdutionUnit { get; set; }
|
||||||
|
|
||||||
|
[Description("生产单元")]
|
||||||
|
[DataFieldForeignKey("Nav_Unit")]
|
||||||
|
public Guid? PRODUCTION_UNIT_ID { get; set; }
|
||||||
|
[Description("导航属性:生产单元")]
|
||||||
|
public T_FM_USER_PRODUCTION_UNIT_SET Nav_Unit { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生产单元类型
|
/// 生产单元类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
129873
APT.Data.Migrations/Migrations/20251023072119_hmr2025102303.Designer.cs
generated
Normal file
129873
APT.Data.Migrations/Migrations/20251023072119_hmr2025102303.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,55 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace APT.Data.Migrations.Migrations
|
||||||
|
{
|
||||||
|
public partial class hmr2025102303 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "Nav_UnitID",
|
||||||
|
table: "T_FM_DEPARTMENT",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "PRODUCTION_UNIT_ID",
|
||||||
|
table: "T_FM_DEPARTMENT",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_T_FM_DEPARTMENT_Nav_UnitID",
|
||||||
|
table: "T_FM_DEPARTMENT",
|
||||||
|
column: "Nav_UnitID");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_T_FM_DEPARTMENT_T_FM_USER_PRODUCTION_UNIT_SET_Nav_UnitID",
|
||||||
|
table: "T_FM_DEPARTMENT",
|
||||||
|
column: "Nav_UnitID",
|
||||||
|
principalTable: "T_FM_USER_PRODUCTION_UNIT_SET",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_T_FM_DEPARTMENT_T_FM_USER_PRODUCTION_UNIT_SET_Nav_UnitID",
|
||||||
|
table: "T_FM_DEPARTMENT");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_T_FM_DEPARTMENT_Nav_UnitID",
|
||||||
|
table: "T_FM_DEPARTMENT");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Nav_UnitID",
|
||||||
|
table: "T_FM_DEPARTMENT");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "PRODUCTION_UNIT_ID",
|
||||||
|
table: "T_FM_DEPARTMENT");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1548,6 +1548,9 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
b.Property<int>("NUM")
|
b.Property<int>("NUM")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<Guid?>("Nav_UnitID")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<Guid?>("ORG_ID")
|
b.Property<Guid?>("ORG_ID")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
@ -1559,6 +1562,9 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasMaxLength(100)
|
.HasMaxLength(100)
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid?>("PRODUCTION_UNIT_ID")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("REMARK")
|
b.Property<string>("REMARK")
|
||||||
.HasMaxLength(500)
|
.HasMaxLength(500)
|
||||||
.HasColumnType("nvarchar(500)");
|
.HasColumnType("nvarchar(500)");
|
||||||
@ -1574,6 +1580,8 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.HasIndex("CHARGEUSER_ID");
|
b.HasIndex("CHARGEUSER_ID");
|
||||||
|
|
||||||
|
b.HasIndex("Nav_UnitID");
|
||||||
|
|
||||||
b.HasIndex("ORG_ID");
|
b.HasIndex("ORG_ID");
|
||||||
|
|
||||||
b.HasIndex("PARENT_ID");
|
b.HasIndex("PARENT_ID");
|
||||||
@ -93769,6 +93777,10 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
.HasForeignKey("CHARGEUSER_ID")
|
.HasForeignKey("CHARGEUSER_ID")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
|
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER_PRODUCTION_UNIT_SET", "Nav_Unit")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("Nav_UnitID");
|
||||||
|
|
||||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("ORG_ID")
|
.HasForeignKey("ORG_ID")
|
||||||
@ -93798,6 +93810,8 @@ namespace APT.Data.Migrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("Nav_Person");
|
b.Navigation("Nav_Person");
|
||||||
|
|
||||||
|
b.Navigation("Nav_Unit");
|
||||||
|
|
||||||
b.Navigation("Nav_User");
|
b.Navigation("Nav_User");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user