初始化
This commit is contained in:
200
WebUI/Migrations/Engineering_ManagementMigrations/20220727024141_managementdb.Designer.cs
generated
Normal file
200
WebUI/Migrations/Engineering_ManagementMigrations/20220727024141_managementdb.Designer.cs
generated
Normal file
@@ -0,0 +1,200 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Models.Models.Engineering;
|
||||
|
||||
namespace WebUI.Migrations.Engineering_ManagementMigrations
|
||||
{
|
||||
[DbContext(typeof(Engineering_Management))]
|
||||
[Migration("20220727024141_managementdb")]
|
||||
partial class managementdb
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64)
|
||||
.HasAnnotation("ProductVersion", "5.0.15");
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Engineerning_TeamMember", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<string>("Department")
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasComment("部门");
|
||||
|
||||
b.Property<string>("UserID")
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasComment("链接到用户权限管理系统");
|
||||
|
||||
b.Property<string>("UserName")
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasComment("用户名字");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Engineerning_TeamMembers");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Engineerning_TeamMember_Log", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<ulong>("CurrentStatus")
|
||||
.HasColumnType("bit")
|
||||
.HasComment(" 当前状态(True = 属于团队成功, False= 不属于团队成员)");
|
||||
|
||||
b.Property<DateTime>("DateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("发生时间,精确到秒");
|
||||
|
||||
b.Property<int>("Event")
|
||||
.HasColumnType("int")
|
||||
.HasComment("事件(加入团队、移除团队)");
|
||||
|
||||
b.Property<string>("Handler")
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasComment("处理人(谁对本条记录进行的操作)");
|
||||
|
||||
b.Property<string>("Remark")
|
||||
.HasColumnType("nvarchar(255)")
|
||||
.HasComment("备注信息");
|
||||
|
||||
b.Property<int>("UserID")
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasComment("链接到用户权限管理系统");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Engineerning_TeamMember_Logs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_EventType_List", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<string>("EventDesc")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("事务描述");
|
||||
|
||||
b.Property<string>("EventName")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("事务名称");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_EventType_Lists");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Event_List", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<int>("CurrentStatus")
|
||||
.HasColumnType("int")
|
||||
.HasComment(" 当前状态(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)");
|
||||
|
||||
b.Property<DateTime>("DateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("事务发生时间,精确到秒");
|
||||
|
||||
b.Property<string>("EventDesc")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("事务描述");
|
||||
|
||||
b.Property<string>("EventType")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("事务类型");
|
||||
|
||||
b.Property<int>("HotelID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("相关酒店");
|
||||
|
||||
b.Property<string>("Process_Department")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("处理部门");
|
||||
|
||||
b.Property<string>("Process_Handler")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("处理人");
|
||||
|
||||
b.Property<DateTime>("Process_TargetDateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("处理日期");
|
||||
|
||||
b.Property<string>("Proposer")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("事务发生时间,精确到秒");
|
||||
|
||||
b.Property<int>("RoomID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("相关房间ID");
|
||||
|
||||
b.Property<int>("RoomTypeId")
|
||||
.HasColumnType("int")
|
||||
.HasComment("相关户型");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Event_Lists");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Event_Process_Log", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<int>("AfterStatus")
|
||||
.HasColumnType("int")
|
||||
.HasComment("本条处理后状态类型(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)");
|
||||
|
||||
b.Property<int>("BeforeStatus")
|
||||
.HasColumnType("int")
|
||||
.HasComment("本条处理前状态类型(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)");
|
||||
|
||||
b.Property<DateTime>("DateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("事务发生时间,精确到秒");
|
||||
|
||||
b.Property<int>("EventID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("关联的事务ID");
|
||||
|
||||
b.Property<string>("Handle")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("提出人");
|
||||
|
||||
b.Property<int>("ProcessType")
|
||||
.HasColumnType("int")
|
||||
.HasComment("处理类型,根据处理类型事务状态将会自动进行转换.处理类型,根据处理类型事务状态将会自动进行转换");
|
||||
|
||||
b.Property<string>("Remark")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("备注");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Event_Process_Logs");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using MySql.EntityFrameworkCore.Metadata;
|
||||
|
||||
namespace WebUI.Migrations.Engineering_ManagementMigrations
|
||||
{
|
||||
public partial class managementdb : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TBL_Engineerning_TeamMember_Logs",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false, comment: "自增长")
|
||||
.Annotation("MySQL:ValueGenerationStrategy", MySQLValueGenerationStrategy.IdentityColumn),
|
||||
DateTime = table.Column<DateTime>(type: "datetime(3)", nullable: false, comment: "发生时间,精确到秒"),
|
||||
UserID = table.Column<int>(type: "nvarchar(50)", nullable: false, comment: "链接到用户权限管理系统"),
|
||||
Handler = table.Column<string>(type: "nvarchar(50)", nullable: true, comment: "处理人(谁对本条记录进行的操作)"),
|
||||
Event = table.Column<int>(type: "int", nullable: false, comment: "事件(加入团队、移除团队)"),
|
||||
CurrentStatus = table.Column<ulong>(type: "bit", nullable: false, comment: " 当前状态(True = 属于团队成功, False= 不属于团队成员)"),
|
||||
Remark = table.Column<string>(type: "nvarchar(255)", nullable: true, comment: "备注信息")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TBL_Engineerning_TeamMember_Logs", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TBL_Engineerning_TeamMembers",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false, comment: "自增长")
|
||||
.Annotation("MySQL:ValueGenerationStrategy", MySQLValueGenerationStrategy.IdentityColumn),
|
||||
UserID = table.Column<string>(type: "nvarchar(50)", nullable: true, comment: "链接到用户权限管理系统"),
|
||||
UserName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "用户名字"),
|
||||
Department = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "部门")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TBL_Engineerning_TeamMembers", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TBL_Event_Lists",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false, comment: "自增长")
|
||||
.Annotation("MySQL:ValueGenerationStrategy", MySQLValueGenerationStrategy.IdentityColumn),
|
||||
CurrentStatus = table.Column<int>(type: "int", nullable: false, comment: " 当前状态(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)"),
|
||||
DateTime = table.Column<DateTime>(type: "datetime(3)", nullable: false, comment: "事务发生时间,精确到秒"),
|
||||
Proposer = table.Column<string>(type: "varchar(50)", nullable: true, comment: "事务发生时间,精确到秒"),
|
||||
EventType = table.Column<string>(type: "varchar(50)", nullable: true, comment: "事务类型"),
|
||||
HotelID = table.Column<int>(type: "int", nullable: false, comment: "相关酒店"),
|
||||
RoomTypeId = table.Column<int>(type: "int", nullable: false, comment: "相关户型"),
|
||||
RoomID = table.Column<int>(type: "int", nullable: false, comment: "相关房间ID"),
|
||||
EventDesc = table.Column<string>(type: "varchar(255)", nullable: true, comment: "事务描述"),
|
||||
Process_Department = table.Column<string>(type: "varchar(50)", nullable: true, comment: "处理部门"),
|
||||
Process_Handler = table.Column<string>(type: "varchar(50)", nullable: true, comment: "处理人"),
|
||||
Process_TargetDateTime = table.Column<DateTime>(type: "datetime(3)", nullable: false, comment: "处理日期")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TBL_Event_Lists", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TBL_Event_Process_Logs",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false, comment: "自增长")
|
||||
.Annotation("MySQL:ValueGenerationStrategy", MySQLValueGenerationStrategy.IdentityColumn),
|
||||
EventID = table.Column<int>(type: "int", nullable: false, comment: "关联的事务ID"),
|
||||
BeforeStatus = table.Column<int>(type: "int", nullable: false, comment: "本条处理前状态类型(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)"),
|
||||
AfterStatus = table.Column<int>(type: "int", nullable: false, comment: "本条处理后状态类型(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)"),
|
||||
ProcessType = table.Column<int>(type: "int", nullable: false, comment: "处理类型,根据处理类型事务状态将会自动进行转换.处理类型,根据处理类型事务状态将会自动进行转换"),
|
||||
DateTime = table.Column<DateTime>(type: "datetime(3)", nullable: false, comment: "事务发生时间,精确到秒"),
|
||||
Handle = table.Column<string>(type: "varchar(50)", nullable: true, comment: "提出人"),
|
||||
Remark = table.Column<string>(type: "varchar(255)", nullable: true, comment: "备注")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TBL_Event_Process_Logs", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TBL_EventType_Lists",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false, comment: "自增长")
|
||||
.Annotation("MySQL:ValueGenerationStrategy", MySQLValueGenerationStrategy.IdentityColumn),
|
||||
EventName = table.Column<string>(type: "varchar(255)", nullable: true, comment: "事务名称"),
|
||||
EventDesc = table.Column<string>(type: "varchar(255)", nullable: true, comment: "事务描述")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TBL_EventType_Lists", x => x.ID);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "TBL_Engineerning_TeamMember_Logs");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TBL_Engineerning_TeamMembers");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TBL_Event_Lists");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TBL_Event_Process_Logs");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TBL_EventType_Lists");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Models.Models.Engineering;
|
||||
|
||||
namespace WebUI.Migrations.Engineering_ManagementMigrations
|
||||
{
|
||||
[DbContext(typeof(Engineering_Management))]
|
||||
partial class Engineering_ManagementModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64)
|
||||
.HasAnnotation("ProductVersion", "5.0.15");
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Engineerning_TeamMember", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<string>("Department")
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasComment("部门");
|
||||
|
||||
b.Property<string>("UserID")
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasComment("链接到用户权限管理系统");
|
||||
|
||||
b.Property<string>("UserName")
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasComment("用户名字");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Engineerning_TeamMembers");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Engineerning_TeamMember_Log", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<ulong>("CurrentStatus")
|
||||
.HasColumnType("bit")
|
||||
.HasComment(" 当前状态(True = 属于团队成功, False= 不属于团队成员)");
|
||||
|
||||
b.Property<DateTime>("DateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("发生时间,精确到秒");
|
||||
|
||||
b.Property<int>("Event")
|
||||
.HasColumnType("int")
|
||||
.HasComment("事件(加入团队、移除团队)");
|
||||
|
||||
b.Property<string>("Handler")
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasComment("处理人(谁对本条记录进行的操作)");
|
||||
|
||||
b.Property<string>("Remark")
|
||||
.HasColumnType("nvarchar(255)")
|
||||
.HasComment("备注信息");
|
||||
|
||||
b.Property<int>("UserID")
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasComment("链接到用户权限管理系统");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Engineerning_TeamMember_Logs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_EventType_List", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<string>("EventDesc")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("事务描述");
|
||||
|
||||
b.Property<string>("EventName")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("事务名称");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_EventType_Lists");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Event_List", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<int>("CurrentStatus")
|
||||
.HasColumnType("int")
|
||||
.HasComment(" 当前状态(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)");
|
||||
|
||||
b.Property<DateTime>("DateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("事务发生时间,精确到秒");
|
||||
|
||||
b.Property<string>("EventDesc")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("事务描述");
|
||||
|
||||
b.Property<string>("EventType")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("事务类型");
|
||||
|
||||
b.Property<int>("HotelID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("相关酒店");
|
||||
|
||||
b.Property<string>("Process_Department")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("处理部门");
|
||||
|
||||
b.Property<string>("Process_Handler")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("处理人");
|
||||
|
||||
b.Property<DateTime>("Process_TargetDateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("处理日期");
|
||||
|
||||
b.Property<string>("Proposer")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("事务发生时间,精确到秒");
|
||||
|
||||
b.Property<int>("RoomID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("相关房间ID");
|
||||
|
||||
b.Property<int>("RoomTypeId")
|
||||
.HasColumnType("int")
|
||||
.HasComment("相关户型");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Event_Lists");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Models.Models.Engineering.TBL_Event_Process_Log", b =>
|
||||
{
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasComment("自增长");
|
||||
|
||||
b.Property<int>("AfterStatus")
|
||||
.HasColumnType("int")
|
||||
.HasComment("本条处理后状态类型(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)");
|
||||
|
||||
b.Property<int>("BeforeStatus")
|
||||
.HasColumnType("int")
|
||||
.HasComment("本条处理前状态类型(1:已提交 2:处理中 3:已处理 4:验证中 5:已关闭)");
|
||||
|
||||
b.Property<DateTime>("DateTime")
|
||||
.HasColumnType("datetime(3)")
|
||||
.HasComment("事务发生时间,精确到秒");
|
||||
|
||||
b.Property<int>("EventID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("关联的事务ID");
|
||||
|
||||
b.Property<string>("Handle")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("提出人");
|
||||
|
||||
b.Property<int>("ProcessType")
|
||||
.HasColumnType("int")
|
||||
.HasComment("处理类型,根据处理类型事务状态将会自动进行转换.处理类型,根据处理类型事务状态将会自动进行转换");
|
||||
|
||||
b.Property<string>("Remark")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasComment("备注");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("TBL_Event_Process_Logs");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user