diff --git a/Code/src/MineTec.ProManager.Application/FigureNumber/Dto/FigureNumberDto.cs b/Code/src/MineTec.ProManager.Application/FigureNumber/Dto/FigureNumberDto.cs new file mode 100644 index 0000000..5da064a --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/FigureNumber/Dto/FigureNumberDto.cs @@ -0,0 +1,54 @@ +using Abp.Application.Services.Dto; +using System; +using System.ComponentModel.DataAnnotations; + +namespace MineTec.ProManager.FigureNumber.Dto +{ + [System.ComponentModel.DataAnnotations.Schema.Table("FigureNumber")] + public class FigureNumberDto : EntityDto + { + /// + /// 创建日期 + /// + public DateTime? CreateTime { get; set; } + /// + /// 创建人ID + /// + [StringLength(50)] + public string? CreateUserID { get; set; } + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string? CreateUserName { get; set; } + /// + /// 修改日期 + /// + public DateTime? UpdateTime { get; set; } + /// + /// 修改人ID + /// + [StringLength(50)] + public string? UpdateUserID { get; set; } + /// + /// 修改人名称 + /// + [StringLength(50)] + public string? UpdateUserName { get; set; } + /// + /// 图号编码 + /// + public int FigureNum { get; set; } + /// + /// 备注 + /// + [StringLength(300)] + public string? Remark { get; set; } + /// + ///是否删除:0 否, 1 是 + /// + public int IsDelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/FigureNumber/FigureNumberAppService.cs b/Code/src/MineTec.ProManager.Application/FigureNumber/FigureNumberAppService.cs new file mode 100644 index 0000000..97aa990 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/FigureNumber/FigureNumberAppService.cs @@ -0,0 +1,27 @@ +using Abp.Application.Services; +using Abp.Application.Services.Dto; +using Abp.Domain.Repositories; +using MineTec.ProManager.FigureNumber.Dto; +using System; +using System.Threading.Tasks; + +namespace MineTec.ProManager.FigureNumber +{ + public class FigureNumberAppService : AsyncCrudAppService, IFigureNumberAppService + + { + public FigureNumberAppService(IRepository repository) + : base(repository) + { + + } + + public override Task CreateAsync(FigureNumberDto input) + { + return base.CreateAsync(input); + } + + + } +} \ No newline at end of file diff --git a/Code/src/MineTec.ProManager.Application/FigureNumber/IFigureNumberAppService.cs b/Code/src/MineTec.ProManager.Application/FigureNumber/IFigureNumberAppService.cs new file mode 100644 index 0000000..a1dc733 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/FigureNumber/IFigureNumberAppService.cs @@ -0,0 +1,18 @@ +using Abp.Application.Services; +using Abp.Application.Services.Dto; +using MineTec.ProManager.FigureNumber.Dto; +using System; + +namespace MineTec.ProManager.FigureNumber +{ + public interface IFigureNumberAppService : IAsyncCrudAppService //用于更新图号编码信息 + { + + + } +} diff --git a/Code/src/MineTec.ProManager.Application/MaterialNumber/Dto/MaterialNumberDto.cs b/Code/src/MineTec.ProManager.Application/MaterialNumber/Dto/MaterialNumberDto.cs new file mode 100644 index 0000000..d47e853 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/MaterialNumber/Dto/MaterialNumberDto.cs @@ -0,0 +1,54 @@ +using Abp.Application.Services.Dto; +using System; +using System.ComponentModel.DataAnnotations; + +namespace MineTec.ProManager.MaterialNumber.Dto +{ + [System.ComponentModel.DataAnnotations.Schema.Table("MaterialNumber")] + public class MaterialNumberDto : EntityDto + { + /// + /// 创建日期 + /// + public DateTime? CreateTime { get; set; } + /// + /// 创建人ID + /// + [StringLength(50)] + public string? CreateUserID { get; set; } + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string? CreateUserName { get; set; } + /// + /// 修改日期 + /// + public DateTime? UpdateTime { get; set; } + /// + /// 修改人ID + /// + [StringLength(50)] + public string? UpdateUserID { get; set; } + /// + /// 修改人名称 + /// + [StringLength(50)] + public string? UpdateUserName { get; set; } + /// + /// 物料编码 + /// + public int MaterialNum { get; set; } + /// + /// 备注 + /// + [StringLength(300)] + public string? Remark { get; set; } + /// + ///是否删除:0 否, 1 是 + /// + public int IsDelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/ProductNumber/Dto/ProductNumberDto.cs b/Code/src/MineTec.ProManager.Application/ProductNumber/Dto/ProductNumberDto.cs new file mode 100644 index 0000000..28098f8 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/ProductNumber/Dto/ProductNumberDto.cs @@ -0,0 +1,55 @@ +using Abp.Application.Services.Dto; +using System; +using System.ComponentModel.DataAnnotations; + +namespace MineTec.ProManager.ProductNumber.Dto +{ + [System.ComponentModel.DataAnnotations.Schema.Table("ProductNumber")] + public class ProductNumberDto : EntityDto + { + /// + /// 创建日期 + /// + public DateTime? CreateTime { get; set; } + /// + /// 创建人ID + /// + [StringLength(50)] + public string? CreateUserID { get; set; } + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string? CreateUserName { get; set; } + /// + /// 修改日期 + /// + public DateTime? UpdateTime { get; set; } + /// + /// 修改人ID + /// + [StringLength(50)] + public string? UpdateUserID { get; set; } + /// + /// 修改人名称 + /// + [StringLength(50)] + public string? UpdateUserName { get; set; } + /// + /// 产品编码 + /// + [StringLength(50)] + public string ProductNum { get; set; } + /// + /// 备注 + /// + [StringLength(300)] + public string? Remark { get; set; } + /// + ///是否删除:0 否, 1 是 + /// + public int IsDelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/UserInfo/IUserInfoAppService.cs b/Code/src/MineTec.ProManager.Application/UserInfo/IUserInfoAppService.cs index a7e3ab1..8bf340c 100644 --- a/Code/src/MineTec.ProManager.Application/UserInfo/IUserInfoAppService.cs +++ b/Code/src/MineTec.ProManager.Application/UserInfo/IUserInfoAppService.cs @@ -7,12 +7,12 @@ namespace MineTec.ProManager.UserInfo { public interface IUserInfoAppService : IAsyncCrudAppService //用于更新用户信息 { - + } } diff --git a/Code/src/MineTec.ProManager.Core/Entitys/Graphic/FigureNumber/FigureNumber.cs b/Code/src/MineTec.ProManager.Core/Entitys/Graphic/FigureNumber/FigureNumber.cs new file mode 100644 index 0000000..f539527 --- /dev/null +++ b/Code/src/MineTec.ProManager.Core/Entitys/Graphic/FigureNumber/FigureNumber.cs @@ -0,0 +1,54 @@ +using Abp.Domain.Entities; +using Abp.Domain.Entities.Auditing; +using System; +using System.ComponentModel.DataAnnotations; + +namespace MineTec.ProManager.Entitys.Graphic.FigureNumber +{ + public class FigureNumber: Entity, IHasCreationTime + { + /// + /// 创建日期 + /// + public DateTime? CreateTime { get; set; } + /// + /// 创建人ID + /// + [StringLength(50)] + public string? CreateUserID { get; set; } + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string? CreateUserName { get; set; } + /// + /// 修改日期 + /// + public DateTime? UpdateTime { get; set; } + /// + /// 修改人ID + /// + [StringLength(50)] + public string? UpdateUserID { get; set; } + /// + /// 修改人名称 + /// + [StringLength(50)] + public string? UpdateUserName { get; set; } + /// + /// 图号编码 + /// + public int FigureNum { get; set; } + /// + /// 备注 + /// + [StringLength(300)] + public string? Remark { get; set; } + /// + ///是否删除:0 否, 1 是 + /// + public int IsDelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Core/Entitys/Graphic/MaterialNumber/MaterialNumber.cs b/Code/src/MineTec.ProManager.Core/Entitys/Graphic/MaterialNumber/MaterialNumber.cs new file mode 100644 index 0000000..13efeb1 --- /dev/null +++ b/Code/src/MineTec.ProManager.Core/Entitys/Graphic/MaterialNumber/MaterialNumber.cs @@ -0,0 +1,54 @@ +using Abp.Domain.Entities; +using Abp.Domain.Entities.Auditing; +using System; +using System.ComponentModel.DataAnnotations; + +namespace MineTec.ProManager.Entitys.Graphic.MaterialNumber +{ + public class MaterialNumber : Entity, IHasCreationTime + { + /// + /// 创建日期 + /// + public DateTime? CreateTime { get; set; } + /// + /// 创建人ID + /// + [StringLength(50)] + public string? CreateUserID { get; set; } + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string? CreateUserName { get; set; } + /// + /// 修改日期 + /// + public DateTime? UpdateTime { get; set; } + /// + /// 修改人ID + /// + [StringLength(50)] + public string? UpdateUserID { get; set; } + /// + /// 修改人名称 + /// + [StringLength(50)] + public string? UpdateUserName { get; set; } + /// + /// 物料编码 + /// + public int MaterialNum { get; set; } + /// + /// 备注 + /// + [StringLength(300)] + public string? Remark { get; set; } + /// + ///是否删除:0 否, 1 是 + /// + public int IsDelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Core/Entitys/Graphic/ProductNumber/ProductNumber.cs b/Code/src/MineTec.ProManager.Core/Entitys/Graphic/ProductNumber/ProductNumber.cs new file mode 100644 index 0000000..91fdff7 --- /dev/null +++ b/Code/src/MineTec.ProManager.Core/Entitys/Graphic/ProductNumber/ProductNumber.cs @@ -0,0 +1,57 @@ +using Abp.Domain.Entities; +using Abp.Domain.Entities.Auditing; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Text; + +namespace MineTec.ProManager.Entitys.Graphic.ProductNumber +{ + public class ProductNumber : Entity, IHasCreationTime + { + /// + /// 创建日期 + /// + public DateTime? CreateTime { get; set; } + /// + /// 创建人ID + /// + [StringLength(50)] + public string? CreateUserID { get; set; } + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string? CreateUserName { get; set; } + /// + /// 修改日期 + /// + public DateTime? UpdateTime { get; set; } + /// + /// 修改人ID + /// + [StringLength(50)] + public string? UpdateUserID { get; set; } + /// + /// 修改人名称 + /// + [StringLength(50)] + public string? UpdateUserName { get; set; } + /// + /// 产品编码 + /// + [StringLength(50)] + public string ProductNum { get; set; } + /// + /// 备注 + /// + [StringLength(300)] + public string? Remark { get; set; } + /// + ///是否删除:0 否, 1 是 + /// + public int IsDelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs index 813319c..46cc04b 100644 --- a/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs @@ -17,5 +17,12 @@ namespace MineTec.ProManager.EntityFrameworkCore } public DbSet UserInfo { get; set; } + + public DbSet FigureNumber { get; set; } + + public DbSet ProductNumber { get; set; } + + public DbSet MaterialNumber { get; set; } + } } diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20201228161935_Graphic_Encoder.Designer.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20201228161935_Graphic_Encoder.Designer.cs new file mode 100644 index 0000000..725408c --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20201228161935_Graphic_Encoder.Designer.cs @@ -0,0 +1,2059 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using MineTec.ProManager.EntityFrameworkCore; + +namespace MineTec.ProManager.Migrations +{ + [DbContext(typeof(ProManagerDbContext))] + [Migration("20201228161935_Graphic_Encoder")] + partial class Graphic_Encoder + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "3.1.5") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Abp.Application.Editions.Edition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.HasKey("Id"); + + b.ToTable("AbpEditions"); + }); + + modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.HasKey("Id"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); + }); + + modelBuilder.Entity("Abp.Auditing.AuditLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CustomData") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Exception") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("ExecutionDuration") + .HasColumnType("int"); + + b.Property("ExecutionTime") + .HasColumnType("datetime2"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("MethodName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Parameters") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("ReturnValue") + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "ExecutionDuration"); + + b.HasIndex("TenantId", "ExecutionTime"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpAuditLogs"); + }); + + modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsGranted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RoleId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpRoleClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserLinkId") + .HasColumnType("bigint"); + + b.Property("UserName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("EmailAddress"); + + b.HasIndex("UserName"); + + b.HasIndex("TenantId", "EmailAddress"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "UserName"); + + b.ToTable("AbpUserAccounts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpUserClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("LoginProvider") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("ProviderKey") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); + + b.ToTable("AbpUserLogins"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Result") + .HasColumnType("tinyint"); + + b.Property("TenancyName") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserNameOrEmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("UserId", "TenantId"); + + b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); + + b.ToTable("AbpUserLoginAttempts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "RoleId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserRoles"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("LoginProvider") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Name") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserTokens"); + }); + + modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsAbandoned") + .HasColumnType("bit"); + + b.Property("JobArgs") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("JobType") + .IsRequired() + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("LastTryTime") + .HasColumnType("datetime2"); + + b.Property("NextTryTime") + .HasColumnType("datetime2"); + + b.Property("Priority") + .HasColumnType("tinyint"); + + b.Property("TryCount") + .HasColumnType("smallint"); + + b.HasKey("Id"); + + b.HasIndex("IsAbandoned", "NextTryTime"); + + b.ToTable("AbpBackgroundJobs"); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "Name", "UserId") + .IsUnique(); + + b.ToTable("AbpSettings"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("EntityFullName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") + .IsUnique() + .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicEntityProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicEntityPropertyId") + .HasColumnType("int"); + + b.Property("EntityId") + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicEntityPropertyId"); + + b.ToTable("AbpDynamicEntityPropertyValues"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("InputType") + .HasColumnType("nvarchar(max)"); + + b.Property("Permission") + .HasColumnType("nvarchar(max)"); + + b.Property("PropertyName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("PropertyName", "TenantId") + .IsUnique() + .HasFilter("[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.ToTable("AbpDynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ChangeTime") + .HasColumnType("datetime2"); + + b.Property("ChangeType") + .HasColumnType("tinyint"); + + b.Property("EntityChangeSetId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(48)") + .HasMaxLength(48); + + b.Property("EntityTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeSetId"); + + b.HasIndex("EntityTypeFullName", "EntityId"); + + b.ToTable("AbpEntityChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ExtensionData") + .HasColumnType("nvarchar(max)"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("Reason") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "CreationTime"); + + b.HasIndex("TenantId", "Reason"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpEntityChangeSets"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("EntityChangeId") + .HasColumnType("bigint"); + + b.Property("NewValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("OriginalValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("PropertyName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("PropertyTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeId"); + + b.ToTable("AbpEntityPropertyChanges"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("Icon") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsDisabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpLanguages"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Key") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("LanguageName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Source") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(67108864); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Source", "LanguageName", "Key"); + + b.ToTable("AbpLanguageTexts"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("ExcludedUserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("UserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.HasKey("Id"); + + b.ToTable("AbpNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.ToTable("AbpNotificationSubscriptions"); + }); + + modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId"); + + b.ToTable("AbpTenantNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("State") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("TenantNotificationId") + .HasColumnType("uniqueidentifier"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId", "State", "CreationTime"); + + b.ToTable("AbpUserNotifications"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Code") + .IsRequired() + .HasColumnType("nvarchar(95)") + .HasMaxLength(95); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("ParentId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ParentId"); + + b.HasIndex("TenantId", "Code"); + + b.ToTable("AbpOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "RoleId"); + + b.ToTable("AbpOrganizationUnitRoles"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Data") + .HasColumnType("nvarchar(max)"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookEvents"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("Response") + .HasColumnType("nvarchar(max)"); + + b.Property("ResponseStatusCode") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookEventId") + .HasColumnType("uniqueidentifier"); + + b.Property("WebhookSubscriptionId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("WebhookEventId"); + + b.ToTable("AbpWebhookSendAttempts"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Headers") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("Secret") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookUri") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Webhooks") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookSubscriptions"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("Description") + .HasColumnType("nvarchar(max)") + .HasMaxLength(5000); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDefault") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsStatic") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("NormalizedName") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedName"); + + b.ToTable("AbpRoles"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("AccessFailedCount") + .HasColumnType("int"); + + b.Property("AuthenticationSource") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("EmailConfirmationCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsEmailConfirmed") + .HasColumnType("bit"); + + b.Property("IsLockoutEnabled") + .HasColumnType("bit"); + + b.Property("IsPhoneNumberConfirmed") + .HasColumnType("bit"); + + b.Property("IsTwoFactorEnabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("LockoutEndDateUtc") + .HasColumnType("datetime2"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("NormalizedEmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("NormalizedUserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Password") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("PasswordResetCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("PhoneNumber") + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("SecurityStamp") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Surname") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedEmailAddress"); + + b.HasIndex("TenantId", "NormalizedUserName"); + + b.ToTable("AbpUsers"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.FigureNumber.FigureNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FigureNum") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("FigureNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.MaterialNumber.MaterialNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialNum") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("MaterialNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.ProductNumber.ProductNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("ProductNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.UserInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Account") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("CellPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeptID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("DeptName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("IsAdmin") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsLeaving") + .HasColumnType("int"); + + b.Property("PassWord") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PostID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("PostName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PowerLevel") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Remake") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Sex") + .HasColumnType("int"); + + b.Property("TelPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UserName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("WorkNo") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("UserInfo"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConnectionString") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenancyName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("EditionId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenancyName"); + + b.ToTable("AbpTenants"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.HasIndex("EditionId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("EditionFeatureSetting"); + }); + + modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("TenantFeatureSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.HasIndex("RoleId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("RolePermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasIndex("UserId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("UserPermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Claims") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Claims") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Logins") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Roles") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Tokens") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Settings") + .HasForeignKey("UserId"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany() + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") + .WithMany() + .HasForeignKey("DynamicEntityPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany("DynamicPropertyValues") + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChangeSet", null) + .WithMany("EntityChanges") + .HasForeignKey("EntityChangeSetId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChange", null) + .WithMany("PropertyChanges") + .HasForeignKey("EntityChangeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") + .WithMany("Children") + .HasForeignKey("ParentId"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") + .WithMany() + .HasForeignKey("WebhookEventId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Permissions") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Permissions") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20201228161935_Graphic_Encoder.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20201228161935_Graphic_Encoder.cs new file mode 100644 index 0000000..ef05db6 --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20201228161935_Graphic_Encoder.cs @@ -0,0 +1,86 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace MineTec.ProManager.Migrations +{ + public partial class Graphic_Encoder : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "FigureNumber", + columns: table => new + { + Id = table.Column(nullable: false), + CreateTime = table.Column(nullable: true), + CreateUserID = table.Column(maxLength: 50, nullable: true), + CreateUserName = table.Column(maxLength: 50, nullable: true), + UpdateTime = table.Column(nullable: true), + UpdateUserID = table.Column(maxLength: 50, nullable: true), + UpdateUserName = table.Column(maxLength: 50, nullable: true), + FigureNum = table.Column(nullable: false), + Remark = table.Column(maxLength: 300, nullable: true), + IsDelete = table.Column(nullable: false), + CreationTime = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FigureNumber", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "MaterialNumber", + columns: table => new + { + Id = table.Column(nullable: false), + CreateTime = table.Column(nullable: true), + CreateUserID = table.Column(maxLength: 50, nullable: true), + CreateUserName = table.Column(maxLength: 50, nullable: true), + UpdateTime = table.Column(nullable: true), + UpdateUserID = table.Column(maxLength: 50, nullable: true), + UpdateUserName = table.Column(maxLength: 50, nullable: true), + MaterialNum = table.Column(nullable: false), + Remark = table.Column(maxLength: 300, nullable: true), + IsDelete = table.Column(nullable: false), + CreationTime = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_MaterialNumber", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "ProductNumber", + columns: table => new + { + Id = table.Column(nullable: false), + CreateTime = table.Column(nullable: true), + CreateUserID = table.Column(maxLength: 50, nullable: true), + CreateUserName = table.Column(maxLength: 50, nullable: true), + UpdateTime = table.Column(nullable: true), + UpdateUserID = table.Column(maxLength: 50, nullable: true), + UpdateUserName = table.Column(maxLength: 50, nullable: true), + ProductNum = table.Column(maxLength: 50, nullable: true), + Remark = table.Column(maxLength: 300, nullable: true), + IsDelete = table.Column(nullable: false), + CreationTime = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ProductNumber", x => x.Id); + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "FigureNumber"); + + migrationBuilder.DropTable( + name: "MaterialNumber"); + + migrationBuilder.DropTable( + name: "ProductNumber"); + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs index a664675..844b295 100644 --- a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs @@ -1512,6 +1512,145 @@ namespace MineTec.ProManager.Migrations b.ToTable("AbpUsers"); }); + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.FigureNumber.FigureNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FigureNum") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("FigureNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.MaterialNumber.MaterialNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialNum") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("MaterialNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.ProductNumber.ProductNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("ProductNumber"); + }); + modelBuilder.Entity("MineTec.ProManager.Entitys.UserInfo", b => { b.Property("Id") diff --git a/Code/src/MineTec.ProManager.Web.Host/appsettings.json b/Code/src/MineTec.ProManager.Web.Host/appsettings.json index 6a6399b..65011a1 100644 --- a/Code/src/MineTec.ProManager.Web.Host/appsettings.json +++ b/Code/src/MineTec.ProManager.Web.Host/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "Default": "Server=localhost; Database=ProManagerDb; user id=sa;password=123456;Trusted_Connection=True;MultipleActiveResultSets=true" + "Default": "Server=.; Database=ProManagerDb; user id=sa;password=123456;Trusted_Connection=True;MultipleActiveResultSets=true" }, "App": { "ServerRootAddress": "http://localhost:21021/", diff --git a/需求/QDJ 0200003-2020 企业产品图样编号规则(6).doc b/需求/QDJ 0200003-2020 企业产品图样编号规则(6).doc new file mode 100644 index 0000000..8c26294 Binary files /dev/null and b/需求/QDJ 0200003-2020 企业产品图样编号规则(6).doc differ diff --git a/需求/~$表单样式说明.docx b/需求/~$表单样式说明.docx new file mode 100644 index 0000000..aa34281 Binary files /dev/null and b/需求/~$表单样式说明.docx differ