From 1bedba8be1e80c9ebdeba843d7b70c7f451d2fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Thu, 11 Dec 2025 22:55:19 +0300 Subject: [PATCH] Migration Problemleri --- ....cs => 20251211195241_Initial.Designer.cs} | 2494 +++++++++-------- ...7_Initial.cs => 20251211195241_Initial.cs} | 1274 ++++----- .../PlatformDbContextModelSnapshot.cs | 2492 ++++++++-------- 3 files changed, 3134 insertions(+), 3126 deletions(-) rename api/src/Erp.Platform.EntityFrameworkCore/Migrations/{20251211184247_Initial.Designer.cs => 20251211195241_Initial.Designer.cs} (93%) rename api/src/Erp.Platform.EntityFrameworkCore/Migrations/{20251211184247_Initial.cs => 20251211195241_Initial.cs} (95%) diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211184247_Initial.Designer.cs b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211195241_Initial.Designer.cs similarity index 93% rename from api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211184247_Initial.Designer.cs rename to api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211195241_Initial.Designer.cs index 78d079d9..cf921e71 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211184247_Initial.Designer.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211195241_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Erp.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20251211184247_Initial")] + [Migration("20251211195241_Initial")] partial class Initial { /// @@ -56,8 +56,8 @@ namespace Erp.Platform.Migrations b.Property("DisplayName") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -121,8 +121,8 @@ namespace Erp.Platform.Migrations b.Property("Key") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -134,8 +134,8 @@ namespace Erp.Platform.Migrations b.Property("ResourceName") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -179,8 +179,8 @@ namespace Erp.Platform.Migrations .HasColumnName("IsDeleted"); b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -191,13 +191,13 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -215,17 +215,17 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Attachment") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("AttachmentParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("AwsMessageId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -245,8 +245,8 @@ namespace Erp.Platform.Migrations b.Property("From") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -263,12 +263,12 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("MailParameter") - .HasMaxLength(8000) + .HasMaxLength(8192) .HasColumnType("nvarchar(max)"); b.Property("RelatedRecordId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SendStatus") .HasColumnType("bit"); @@ -277,20 +277,20 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TableParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TemplateId") .HasColumnType("uniqueidentifier"); b.Property("To") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -307,8 +307,8 @@ namespace Erp.Platform.Migrations b.Property("AwsMessageId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -348,8 +348,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("MailAddress") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ResponseDescription") .HasColumnType("nvarchar(max)"); @@ -370,32 +370,32 @@ namespace Erp.Platform.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Caption") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ColumnName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Css") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DataFormat") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DataType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("FooterCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("HeaderCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsHidden") .HasColumnType("bit"); @@ -407,13 +407,13 @@ namespace Erp.Platform.Migrations .HasColumnType("smallint"); b.Property("SubTotal") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TableName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Width") .HasColumnType("int"); @@ -451,8 +451,8 @@ namespace Erp.Platform.Migrations b.Property("Identifier") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -476,21 +476,21 @@ namespace Erp.Platform.Migrations b.Property("Message") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("NotificationChannel") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("NotificationRuleId") .HasColumnType("uniqueidentifier"); b.Property("NotificationType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ReadTime") .HasColumnType("datetime2"); @@ -513,8 +513,8 @@ namespace Erp.Platform.Migrations b.Property("Channel") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -557,17 +557,17 @@ namespace Erp.Platform.Migrations b.Property("NotificationType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("RecipientId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("RecipientType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -637,8 +637,8 @@ namespace Erp.Platform.Migrations b.Property("ActivityType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -657,8 +657,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .HasColumnType("int"); @@ -670,8 +670,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("FollowUpActivity") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("FollowUpDate") .HasColumnType("datetime2"); @@ -691,23 +691,23 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("NextSteps") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("OpportunityId") .HasColumnType("uniqueidentifier"); b.Property("Outcome") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("StartTime") .HasColumnType("datetime2"); b.Property("Subject") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -752,18 +752,18 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Attachments") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Content") .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -782,23 +782,23 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Departments") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); b.Property("Excerpt") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("ExpiryDate") .HasColumnType("datetime2"); b.Property("ImageUrl") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -826,8 +826,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ViewCount") .ValueGeneratedOnAdd() @@ -893,8 +893,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -935,8 +935,8 @@ namespace Erp.Platform.Migrations b.Property("EmployeeIds") .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -983,12 +983,12 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AfterSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("BeforeSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -1000,12 +1000,12 @@ namespace Erp.Platform.Migrations b.Property("Cron") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DataSourceCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -1036,8 +1036,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Options") .HasColumnType("text"); @@ -1060,17 +1060,17 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(20)"); b.Property("Category") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Color") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -1081,8 +1081,8 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("Criteria") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -1093,8 +1093,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Icon") .HasMaxLength(10) @@ -1128,8 +1128,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("Rarity") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -1487,8 +1487,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("ReadTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Slug") .IsRequired() @@ -1540,12 +1540,12 @@ namespace Erp.Platform.Migrations b.Property("BomTypeId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -1597,8 +1597,8 @@ namespace Erp.Platform.Migrations b.Property("Version") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -1804,8 +1804,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0); b.Property("WorkcenterId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -1821,8 +1821,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.BomType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -1841,8 +1841,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -1865,8 +1865,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2029,8 +2029,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2042,8 +2042,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -2054,8 +2054,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2078,8 +2078,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2093,8 +2093,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Category", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2113,8 +2113,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2137,8 +2137,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2155,8 +2155,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("CertificateUrl") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2222,8 +2222,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AccountNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Amount") .ValueGeneratedOnAdd() @@ -2232,8 +2232,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("BankName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("BankingDate") .HasColumnType("datetime2"); @@ -2242,13 +2242,13 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("BranchName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CheckNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CollectionDate") .HasColumnType("datetime2"); @@ -2263,8 +2263,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentAccountId") .HasColumnType("uniqueidentifier"); @@ -2278,15 +2278,15 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("DrawerName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("DueDate") .HasColumnType("datetime2"); b.Property("EndorsedTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -2306,17 +2306,17 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PayeeName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2324,8 +2324,8 @@ namespace Erp.Platform.Migrations b.Property("TypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -2341,8 +2341,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CheckStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2361,8 +2361,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2385,8 +2385,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2400,8 +2400,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CheckType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2420,8 +2420,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2444,8 +2444,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2623,12 +2623,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2739,8 +2739,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .HasColumnType("int"); @@ -2764,8 +2764,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ParticipantCount") .HasColumnType("int"); @@ -2780,16 +2780,16 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(max)"); b.Property("Subject") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TeacherId") .HasColumnType("uniqueidentifier"); b.Property("TeacherName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2856,8 +2856,8 @@ namespace Erp.Platform.Migrations b.Property("StudentName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2920,8 +2920,8 @@ namespace Erp.Platform.Migrations b.Property("Message") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("MessageType") .HasMaxLength(64) @@ -2931,16 +2931,16 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("RecipientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SenderId") .HasColumnType("uniqueidentifier"); b.Property("SenderName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SessionId") .HasColumnType("uniqueidentifier"); @@ -2972,8 +2972,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("ConnectionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -3042,8 +3042,8 @@ namespace Erp.Platform.Migrations b.Property("UserName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -3098,27 +3098,27 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("OpportunityId") .HasColumnType("uniqueidentifier"); b.Property("Strengths") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Weaknesses") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Website") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -3133,8 +3133,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("BankJson") .HasColumnType("text"); @@ -3156,8 +3156,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Email") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -3174,8 +3174,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Location") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("MapJson") .HasColumnType("text"); @@ -3312,8 +3312,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CostCenterType") .HasMaxLength(64) @@ -3344,8 +3344,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("FiscalYear") .HasMaxLength(10) @@ -3372,8 +3372,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ParentCostCenterId") .HasColumnType("uniqueidentifier"); @@ -3552,8 +3552,8 @@ namespace Erp.Platform.Migrations b.Property("EntityName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsActive") .HasColumnType("bit"); @@ -3579,13 +3579,13 @@ namespace Erp.Platform.Migrations b.Property("OperationType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Path") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -3619,17 +3619,17 @@ namespace Erp.Platform.Migrations b.Property("EntityName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ErrorMessage") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("FileName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -3645,8 +3645,8 @@ namespace Erp.Platform.Migrations b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -3662,8 +3662,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Currency", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -3737,8 +3737,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -3768,8 +3768,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -3792,14 +3792,14 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PartnerId") .HasColumnType("uniqueidentifier"); b.Property("PaymentTermId") - .HasColumnType("nvarchar(100)"); + .HasColumnType("nvarchar(128)"); b.Property("Risk") .HasMaxLength(10) @@ -3851,12 +3851,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Dependencies") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .HasColumnType("bit"); @@ -3877,12 +3877,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Props") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -3908,8 +3908,8 @@ namespace Erp.Platform.Migrations b.Property("DataSourceCode") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -3993,18 +3993,18 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DisplayName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EndpointStatus") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsActive") .HasColumnType("bit"); @@ -4031,26 +4031,26 @@ namespace Erp.Platform.Migrations b.Property("Menu") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("MigrationId") .HasColumnType("uniqueidentifier"); b.Property("MigrationStatus") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TableName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4087,8 +4087,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DisplayOrder") .HasColumnType("int"); @@ -4121,13 +4121,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -4139,8 +4139,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CustomerSegment", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -4159,8 +4159,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4183,8 +4183,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4198,8 +4198,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CustomerType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -4218,8 +4218,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4242,8 +4242,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4261,8 +4261,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ConnectionString") .HasMaxLength(256) @@ -4309,8 +4309,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.DeliveryTerm", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -4329,8 +4329,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4353,8 +4353,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4412,8 +4412,8 @@ namespace Erp.Platform.Migrations b.Property("Message") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Name") .IsRequired() @@ -4481,8 +4481,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4508,8 +4508,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ParentDepartmentId") .HasColumnType("uniqueidentifier"); @@ -4733,8 +4733,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("DisplayName") .HasMaxLength(512) @@ -4791,7 +4791,7 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.EducationStatus", b => { b.Property("Id") - .HasMaxLength(50) + .HasMaxLength(64) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") @@ -4826,8 +4826,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Order") .HasColumnType("smallint"); @@ -4847,16 +4847,16 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address1") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Address2") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Avatar") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("BadgeId") .HasColumnType("uniqueidentifier"); @@ -4877,8 +4877,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Country") .HasMaxLength(8) @@ -4913,20 +4913,20 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("Email") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EmergencyContactName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("EmergencyContactPhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("EmergencyContactRelationship") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EmployeeStatus") .HasMaxLength(20) @@ -4943,8 +4943,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("IbanNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4981,24 +4981,24 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("NationalId") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasMaxLength(11) + .HasColumnType("nvarchar(11)"); b.Property("PayrollGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("PostalCode") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5012,8 +5012,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("WorkLocation") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -5069,8 +5069,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5109,8 +5109,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -5134,15 +5134,15 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ParticipantsCount") .HasColumnType("int"); b.Property("Place") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Status") .HasMaxLength(20) @@ -5226,8 +5226,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Content") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5324,8 +5324,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -5400,8 +5400,8 @@ namespace Erp.Platform.Migrations b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5425,8 +5425,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -5446,16 +5446,16 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("RejectionReason") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("RequestDate") .HasColumnType("datetime2"); @@ -5487,20 +5487,20 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("AssignedTo") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ClosedAt") .HasColumnType("datetime2"); b.Property("ClosedBy") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5519,19 +5519,19 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EstimatedRepairTime") .HasColumnType("int"); b.Property("FaultStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("FaultTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("FollowUpRequired") .HasColumnType("bit"); @@ -5554,20 +5554,20 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Location") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Priority") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ResolutionNotes") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Severity") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() @@ -5579,16 +5579,16 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Title") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WorkorderId") - .HasMaxLength(100) + .HasMaxLength(128) .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -5605,8 +5605,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.FaultStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5625,8 +5625,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -5649,8 +5649,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5664,8 +5664,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.FaultType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5684,8 +5684,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -5708,8 +5708,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5729,12 +5729,12 @@ namespace Erp.Platform.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Group") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("System") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5750,8 +5750,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(512)"); b.Property("Weight") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -5851,12 +5851,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5916,12 +5916,12 @@ namespace Erp.Platform.Migrations b.Property("LocationId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("LotNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("MaterialId") .HasColumnType("uniqueidentifier"); @@ -5942,8 +5942,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("SerialNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5956,13 +5956,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -5989,8 +5989,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentAccountId") .HasColumnType("uniqueidentifier"); @@ -6017,12 +6017,12 @@ namespace Erp.Platform.Migrations b.Property("InvoiceNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("InvoiceTypeId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -6039,8 +6039,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PaidAmount") .ValueGeneratedOnAdd() @@ -6049,7 +6049,7 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("PaymentStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("RemainingAmount") .ValueGeneratedOnAdd() @@ -6059,8 +6059,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Subtotal") .ValueGeneratedOnAdd() @@ -6122,8 +6122,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -6216,8 +6216,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.InvoiceStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6236,8 +6236,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -6260,8 +6260,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6275,8 +6275,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.InvoiceType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6295,8 +6295,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -6319,8 +6319,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6396,8 +6396,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6424,8 +6424,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -6447,8 +6447,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Level") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("MaxSalary") .HasPrecision(18, 2) @@ -6489,8 +6489,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6509,12 +6509,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("FaxNumber") .HasMaxLength(20) @@ -6540,23 +6540,23 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TaxNumber") .HasColumnType("bigint"); b.Property("TaxOffice") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6582,8 +6582,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("Attachments") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6626,16 +6626,16 @@ namespace Erp.Platform.Migrations b.Property("LeaveType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Reason") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("RejectionReason") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("StartDate") .HasColumnType("datetime2"); @@ -6720,8 +6720,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6791,15 +6791,15 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Order") .HasColumnType("int"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6864,6 +6864,7 @@ namespace Erp.Platform.Migrations .HasColumnType("text"); b.Property("CultureName") + .IsRequired() .HasMaxLength(10) .HasColumnType("nvarchar(10)"); @@ -6874,8 +6875,8 @@ namespace Erp.Platform.Migrations .HasColumnType("text"); b.Property("DataSourceCode") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("DataSourceJson") .HasColumnType("text"); @@ -6986,8 +6987,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("KeyFieldName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -7223,12 +7224,12 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("CaptionName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ColumnCssClass") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ColumnCssValue") .HasMaxLength(256) @@ -7255,6 +7256,7 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("CultureName") + .IsRequired() .HasMaxLength(10) .HasColumnType("nvarchar(10)"); @@ -7274,12 +7276,12 @@ namespace Erp.Platform.Migrations b.Property("FieldName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Format") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("GroupSummaryJson") .HasColumnType("text"); @@ -7502,8 +7504,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Location", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Capacity") .ValueGeneratedOnAdd() @@ -7513,8 +7515,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7539,8 +7541,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7566,13 +7568,13 @@ namespace Erp.Platform.Migrations b.Property("LocationTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -7583,13 +7585,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -7607,13 +7609,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.LocationType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7632,8 +7634,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7656,8 +7658,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -7703,13 +7705,13 @@ namespace Erp.Platform.Migrations b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7728,8 +7730,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .HasColumnType("bit"); @@ -7750,8 +7752,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -7768,13 +7770,13 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Barcode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CostPrice") .ValueGeneratedOnAdd() @@ -7804,8 +7806,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7834,8 +7836,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SalesPrice") .ValueGeneratedOnAdd() @@ -7854,8 +7856,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("TrackingType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("UomId") .HasColumnType("nvarchar(64)"); @@ -7878,8 +7880,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7898,8 +7900,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7922,8 +7924,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ParentGroupId") .HasColumnType("uniqueidentifier"); @@ -7984,13 +7986,13 @@ namespace Erp.Platform.Migrations b.Property("SpecificationName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SpecificationValue") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8015,8 +8017,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8035,8 +8037,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8059,8 +8061,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8113,8 +8115,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Materials") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8172,13 +8174,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8186,8 +8188,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -8231,16 +8233,16 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Order") .HasColumnType("smallint"); b.Property("Status") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8258,8 +8260,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8274,8 +8276,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("CultureName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -8287,16 +8289,16 @@ namespace Erp.Platform.Migrations b.Property("DisplayName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ElementId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Icon") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -8319,8 +8321,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("ParentCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredPermissionName") .HasMaxLength(128) @@ -8331,12 +8333,12 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(256)"); b.Property("Target") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Url") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) @@ -8369,8 +8371,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -8394,24 +8396,24 @@ namespace Erp.Platform.Migrations b.Property("MovementNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("MovementType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PartnerId") .HasColumnType("uniqueidentifier"); b.Property("ReferenceDocument") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ReferenceTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8448,8 +8450,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -8467,12 +8469,12 @@ namespace Erp.Platform.Migrations b.Property("LocationId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("LotNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("MaterialId") .HasColumnType("uniqueidentifier"); @@ -8497,13 +8499,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -8525,8 +8527,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.MovementType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8545,8 +8547,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8569,8 +8571,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8588,8 +8590,8 @@ namespace Erp.Platform.Migrations b.Property("Content") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8609,13 +8611,13 @@ namespace Erp.Platform.Migrations b.Property("EntityId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("EntityName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("FilesJson") .HasColumnType("nvarchar(max)"); @@ -8645,8 +8647,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -8690,8 +8692,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8709,8 +8711,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8729,12 +8731,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Instructions") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8769,8 +8771,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("OperationTypeId") .HasColumnType("uniqueidentifier"); @@ -8802,8 +8804,8 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -8836,8 +8838,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8860,8 +8862,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8887,8 +8889,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8912,8 +8914,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8936,8 +8938,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("QualityCheckRequired") .ValueGeneratedOnAdd() @@ -8993,8 +8995,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -9038,13 +9040,13 @@ namespace Erp.Platform.Migrations b.Property("Stage") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TeamCode") .HasMaxLength(95) @@ -9056,8 +9058,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -9164,8 +9166,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("PaymentDataJson") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("PaymentMethodId") .HasColumnType("uniqueidentifier"); @@ -9274,8 +9276,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.OrderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -9294,8 +9296,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -9318,8 +9320,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -9368,7 +9370,7 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("EndTime") - .HasMaxLength(10) + .HasMaxLength(8) .HasColumnType("datetime2"); b.Property("IsDeleted") @@ -9390,15 +9392,15 @@ namespace Erp.Platform.Migrations .HasColumnType("decimal(18,2)"); b.Property("Reason") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("RejectionReason") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("StartTime") - .HasMaxLength(10) + .HasMaxLength(8) .HasColumnType("datetime2"); b.Property("Status") @@ -9485,10 +9487,10 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("CustomerSegmentId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("CustomerTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -9562,8 +9564,8 @@ namespace Erp.Platform.Migrations b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PerformanceMetricsJson") .HasColumnType("text"); @@ -9588,10 +9590,10 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("SupplierTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("SupplyCardTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TaxNumber") .HasColumnType("bigint"); @@ -9656,8 +9658,8 @@ namespace Erp.Platform.Migrations b.Property("AccountNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("AccountOwner") .IsRequired() @@ -9770,8 +9772,8 @@ namespace Erp.Platform.Migrations b.Property("Certificate") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -9802,8 +9804,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("Issuer") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -9971,8 +9973,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.PaymentStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -9991,8 +9993,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10015,8 +10017,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10030,8 +10032,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.PaymentTerm", b => { b.Property("Id") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10051,8 +10053,8 @@ namespace Erp.Platform.Migrations b.Property("Description") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10075,8 +10077,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10226,8 +10228,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PayrollItemId") .HasColumnType("uniqueidentifier"); @@ -10273,8 +10275,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EndDate") .HasColumnType("datetime2"); @@ -10295,19 +10297,19 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TargetEmployees") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("TemplateId") .HasColumnType("uniqueidentifier"); @@ -10332,8 +10334,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10352,8 +10354,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EstimatedDuration") .HasColumnType("int"); @@ -10363,13 +10365,13 @@ namespace Erp.Platform.Migrations b.Property("FrequencyUnit") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Instructions") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10398,16 +10400,16 @@ namespace Erp.Platform.Migrations b.Property("PlanType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Priority") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredSkillsJson") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10415,8 +10417,8 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -10447,8 +10449,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -10572,12 +10574,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("ImageUrl") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -10653,12 +10655,13 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("Currency") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CustomerRequirement") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -10684,13 +10687,13 @@ namespace Erp.Platform.Migrations b.Property("OrderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("OrderTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PlannedCost") .ValueGeneratedOnAdd() @@ -10712,8 +10715,8 @@ namespace Erp.Platform.Migrations b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredQuantity") .ValueGeneratedOnAdd() @@ -10729,8 +10732,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10844,8 +10847,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ProductionOrderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10864,8 +10867,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10888,8 +10891,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10903,8 +10906,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ProductionOrderType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10923,8 +10926,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10947,8 +10950,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11060,8 +11063,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11069,13 +11072,13 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WorkorderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -11129,12 +11132,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11170,8 +11173,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11182,8 +11185,9 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("Currency") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CustomerId") .HasColumnType("uniqueidentifier"); @@ -11197,8 +11201,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EndDate") .HasColumnType("datetime2"); @@ -11227,13 +11231,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11245,19 +11249,19 @@ namespace Erp.Platform.Migrations b.Property("ProjectTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TaskTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11305,12 +11309,12 @@ namespace Erp.Platform.Migrations b.Property("CategoryId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11329,8 +11333,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EndDate") .HasColumnType("datetime2"); @@ -11356,8 +11360,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11368,11 +11372,11 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("RiskId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("Risks") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Sequence") .ValueGeneratedOnAdd() @@ -11384,8 +11388,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11444,7 +11448,7 @@ namespace Erp.Platform.Migrations b.Property("RiskId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11481,8 +11485,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -11511,16 +11515,16 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("PhaseId") .HasColumnType("uniqueidentifier"); b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11535,11 +11539,11 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TaskTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11566,8 +11570,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Challenges") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11589,8 +11593,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -11615,8 +11619,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("NextSteps") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11625,8 +11629,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); @@ -11637,8 +11641,8 @@ namespace Erp.Platform.Migrations b.Property("WorkedTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -11718,8 +11722,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11738,8 +11742,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -11757,16 +11761,16 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11827,21 +11831,21 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("OrderDate") .HasColumnType("datetime2"); b.Property("OrderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("QuotationId") .HasColumnType("uniqueidentifier"); @@ -11874,8 +11878,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Terms") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("TotalAmount") .ValueGeneratedOnAdd() @@ -11924,8 +11928,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12004,8 +12008,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12024,8 +12028,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -12054,8 +12058,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Priority") .ValueGeneratedOnAdd() @@ -12064,16 +12068,16 @@ namespace Erp.Platform.Migrations b.Property("Strategy") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TargetLocationId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TargetZoneId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12081,8 +12085,8 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -12096,8 +12100,8 @@ namespace Erp.Platform.Migrations b.Property("ConditionType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12142,8 +12146,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Value") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -12158,12 +12162,12 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Content") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CorrectAnswer") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12186,8 +12190,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("Explanation") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12208,8 +12212,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("MediaUrl") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Points") .ValueGeneratedOnAdd() @@ -12221,8 +12225,8 @@ namespace Erp.Platform.Migrations b.Property("QuestionType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12235,8 +12239,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -12296,8 +12300,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Text") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -12328,8 +12332,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12347,12 +12351,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Tags") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12369,8 +12373,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Color") - .HasMaxLength(7) - .HasColumnType("nvarchar(7)"); + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12389,8 +12393,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12408,8 +12412,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12440,8 +12444,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -12453,8 +12457,8 @@ namespace Erp.Platform.Migrations b.Property("DeliveryTermId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DeliveryTime") .ValueGeneratedOnAdd() @@ -12468,12 +12472,12 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("EvaluationComments") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EvaluationNotes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EvaluationScore") .ValueGeneratedOnAdd() @@ -12495,49 +12499,49 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PaymentMethodId") .HasColumnType("nvarchar(450)"); b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("QuotationDate") .HasColumnType("datetime2"); b.Property("QuotationNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequestId") .HasColumnType("uniqueidentifier"); b.Property("RequestTitle") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("RequestTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("SubmittedAt") .HasColumnType("datetime2"); b.Property("SubmittedBy") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SupplierId") .HasColumnType("uniqueidentifier"); @@ -12596,8 +12600,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12659,8 +12663,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.QuotationStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12679,8 +12683,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -12703,8 +12707,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12718,8 +12722,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ReferenceType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12738,8 +12742,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -12762,13 +12766,13 @@ namespace Erp.Platform.Migrations b.Property("MovementTypeName") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12818,15 +12822,15 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RegistrationTypeId") .HasColumnType("uniqueidentifier"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12881,12 +12885,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12921,8 +12925,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasMaxLength(64) @@ -12996,8 +13000,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("TemplateId") .HasColumnType("uniqueidentifier"); @@ -13032,8 +13036,8 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("DefaultValue") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -13044,8 +13048,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -13063,12 +13067,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Placeholder") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Required") .HasColumnType("bit"); @@ -13116,8 +13120,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("HtmlContent") .IsRequired() @@ -13143,8 +13147,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(256)"); b.Property("Tags") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13182,8 +13186,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -13212,13 +13216,13 @@ namespace Erp.Platform.Migrations b.Property("RequestNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequestTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredDate") .HasColumnType("datetime2"); @@ -13280,8 +13284,8 @@ namespace Erp.Platform.Migrations .HasColumnType("bit"); b.Property("Justification") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -13304,8 +13308,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Specification") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13330,8 +13334,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.RequestType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13350,8 +13354,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -13374,8 +13378,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13428,29 +13432,29 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Participants") .HasColumnType("int"); b.Property("Purpose") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("ResourceName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13458,8 +13462,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -13471,8 +13475,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Risk", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13491,8 +13495,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -13515,8 +13519,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13626,8 +13630,8 @@ namespace Erp.Platform.Migrations b.Property("DeliveryTermId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -13662,31 +13666,31 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("OrderDate") .HasColumnType("datetime2"); b.Property("OrderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("RequestedDeliveryDate") .HasColumnType("datetime2"); b.Property("SalesOrderStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("SpecialInstructions") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Status") .IsRequired() @@ -13762,8 +13766,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -13795,8 +13799,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Quantity") .ValueGeneratedOnAdd() @@ -13808,8 +13812,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Status") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TaxAmount") .ValueGeneratedOnAdd() @@ -13858,8 +13862,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.SalesOrderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13878,8 +13882,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -13902,8 +13906,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13920,8 +13924,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13955,12 +13959,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13996,8 +14000,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("EndTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("Friday") .HasColumnType("bit"); @@ -14047,8 +14051,8 @@ namespace Erp.Platform.Migrations .HasColumnType("bit"); b.Property("StartTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("Status") .HasMaxLength(20) @@ -14106,8 +14110,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("EndTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -14136,8 +14140,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("StartTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -14324,8 +14328,8 @@ namespace Erp.Platform.Migrations b.Property("Route") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -14514,7 +14518,7 @@ namespace Erp.Platform.Migrations b.Property("Content") .IsRequired() - .HasMaxLength(8000) + .HasMaxLength(8192) .HasColumnType("nvarchar(max)"); b.Property("CreationTime") @@ -14751,8 +14755,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(64)"); b.PrimitiveCollection("Urls") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.HasKey("Id"); @@ -14826,8 +14830,8 @@ namespace Erp.Platform.Migrations b.Property("Content") .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -14925,12 +14929,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -14944,8 +14948,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Status", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -14964,8 +14968,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -14988,8 +14992,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15003,8 +15007,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.SupplyCardType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15023,8 +15027,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15047,8 +15051,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15062,8 +15066,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.SupplyType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15082,8 +15086,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15106,8 +15110,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15143,8 +15147,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("IsAnonymous") .HasColumnType("bit"); @@ -15179,8 +15183,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -15227,8 +15231,8 @@ namespace Erp.Platform.Migrations b.Property("QuestionType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ResponseId") .HasColumnType("uniqueidentifier"); @@ -15239,8 +15243,8 @@ namespace Erp.Platform.Migrations b.Property("Value") .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.HasKey("Id"); @@ -15294,8 +15298,8 @@ namespace Erp.Platform.Migrations b.Property("QuestionText") .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("SurveyId") .HasColumnType("uniqueidentifier"); @@ -15306,8 +15310,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -15363,8 +15367,8 @@ namespace Erp.Platform.Migrations b.Property("Text") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -15433,8 +15437,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.TaskType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15453,8 +15457,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15477,8 +15481,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15495,8 +15499,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AssessorTypes") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15515,8 +15519,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15539,8 +15543,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("QuestionGroupsJson") .HasColumnType("text"); @@ -15561,8 +15565,8 @@ namespace Erp.Platform.Migrations b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15581,8 +15585,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .ValueGeneratedOnAdd() @@ -15599,8 +15603,8 @@ namespace Erp.Platform.Migrations b.Property("Instructor") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -15618,8 +15622,8 @@ namespace Erp.Platform.Migrations b.Property("Location") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("MaxParticipants") .ValueGeneratedOnAdd() @@ -15631,26 +15635,26 @@ namespace Erp.Platform.Migrations b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Thumbnail") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Title") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -15660,8 +15664,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Type", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15680,8 +15684,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15704,8 +15708,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15881,8 +15885,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15899,8 +15903,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AssistantDriverName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("AssistantDriverNationalId") .HasMaxLength(11) @@ -15915,8 +15919,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(20)"); b.Property("Brand") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15935,8 +15939,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("DriverName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DriverNationalId") .HasMaxLength(11) @@ -15973,8 +15977,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("Status") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15991,8 +15995,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("BadgeNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CheckIn") .HasColumnType("datetime2"); @@ -16001,8 +16005,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("CompanyName") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16021,8 +16025,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Email") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -16043,8 +16047,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .IsRequired() @@ -16052,12 +16056,12 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(20)"); b.Property("Photo") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Purpose") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Status") .IsRequired() @@ -16081,8 +16085,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Warehouse", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Capacity") .ValueGeneratedOnAdd() @@ -16096,8 +16100,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Country") .HasMaxLength(128) @@ -16120,8 +16124,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("District") .HasMaxLength(128) @@ -16156,12 +16160,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("PostalCode") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); b.Property("Security") .HasMaxLength(20) @@ -16182,8 +16186,8 @@ namespace Erp.Platform.Migrations b.Property("WarehouseTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -16197,13 +16201,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WarehouseType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16222,8 +16226,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16246,8 +16250,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16267,8 +16271,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("CarrierCompany") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16280,8 +16284,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentAccountId") .HasColumnType("uniqueidentifier"); @@ -16295,8 +16299,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("DeliveryAddress") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DeliveryDate") .HasColumnType("datetime2"); @@ -16330,16 +16334,16 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("ReceiverName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ReceiverPhone") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Subtotal") .ValueGeneratedOnAdd() @@ -16364,26 +16368,26 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("TrackingNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WaybillDate") .HasColumnType("datetime2"); b.Property("WaybillNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("WaybillStatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("WaybillTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -16418,8 +16422,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -16511,8 +16515,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WaybillStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16531,8 +16535,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16555,8 +16559,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16570,8 +16574,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WaybillType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16590,8 +16594,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16614,8 +16618,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16647,7 +16651,7 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2") .HasColumnName("DeletionTime"); - b.Property("EndHour") + b.Property("EndTime") .HasMaxLength(8) .HasColumnType("datetime2"); @@ -16673,13 +16677,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Saturday") .HasColumnType("bit"); - b.Property("StartHour") + b.Property("StartTime") .HasMaxLength(8) .HasColumnType("datetime2"); @@ -16707,8 +16711,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16727,8 +16731,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16751,8 +16755,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16766,8 +16770,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Workcenter", b => { b.Property("Id") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Capacity") .ValueGeneratedOnAdd() @@ -16776,8 +16780,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CostPerHour") .ValueGeneratedOnAdd() @@ -16809,8 +16813,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("InstallationDate") .HasColumnType("datetime2"); @@ -16835,25 +16839,25 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Location") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Manufacturer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Model") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SerialNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SetupTime") .ValueGeneratedOnAdd() @@ -16873,12 +16877,12 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("WorkcenterStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("WorkcenterTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -16933,13 +16937,13 @@ namespace Erp.Platform.Migrations b.Property("SpecificationName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SpecificationValue") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16951,7 +16955,7 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(64)"); b.Property("WorkcenterId") - .HasColumnType("nvarchar(100)"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -16965,8 +16969,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkcenterStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16985,8 +16989,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17009,8 +17013,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17024,8 +17028,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkcenterType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17044,8 +17048,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17068,8 +17072,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17114,8 +17118,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -17141,8 +17145,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PlanId") .HasColumnType("uniqueidentifier"); @@ -17152,8 +17156,8 @@ namespace Erp.Platform.Migrations b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ScheduledEnd") .HasColumnType("datetime2"); @@ -17163,12 +17167,12 @@ namespace Erp.Platform.Migrations b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Subject") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17176,20 +17180,20 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WorkorderNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("WorkorderStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("WorkorderTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -17228,8 +17232,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .ValueGeneratedOnAdd() @@ -17338,8 +17342,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkorderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17358,8 +17362,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17382,8 +17386,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17397,8 +17401,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkorderType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17417,8 +17421,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17441,8 +17445,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17456,13 +17460,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Zone", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17481,8 +17485,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Humidity") .ValueGeneratedOnAdd() @@ -17511,8 +17515,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Temperature") .ValueGeneratedOnAdd() @@ -17526,13 +17530,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -17546,13 +17550,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ZoneType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17571,8 +17575,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17595,8 +17599,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17892,8 +17896,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(16)"); b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -17996,8 +18000,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DisplayName") .IsRequired() @@ -18037,8 +18041,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("ReturnType") .IsRequired() @@ -18109,8 +18113,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("ExecutionCount") .HasColumnType("int"); @@ -18141,8 +18145,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(256)"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("QueryText") .IsRequired() @@ -18152,8 +18156,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("Tags") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -18204,8 +18208,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DisplayName") .IsRequired() @@ -18233,8 +18237,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("ProcedureBody") .IsRequired() @@ -18302,8 +18306,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DisplayName") .IsRequired() diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211184247_Initial.cs b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211195241_Initial.cs similarity index 95% rename from api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211184247_Initial.cs rename to api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211195241_Initial.cs index f4154f1e..d87d185a 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211184247_Initial.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/20251211195241_Initial.cs @@ -471,10 +471,10 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), Balance = table.Column(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false, defaultValue: 0m), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -494,10 +494,10 @@ namespace Erp.Platform.Migrations name: "Acc_T_CheckStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -516,10 +516,10 @@ namespace Erp.Platform.Migrations name: "Acc_T_CheckType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -538,10 +538,10 @@ namespace Erp.Platform.Migrations name: "Acc_T_InvoiceStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -560,10 +560,10 @@ namespace Erp.Platform.Migrations name: "Acc_T_InvoiceType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -582,10 +582,10 @@ namespace Erp.Platform.Migrations name: "Acc_T_PaymentStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -604,10 +604,10 @@ namespace Erp.Platform.Migrations name: "Acc_T_WaybillStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -626,10 +626,10 @@ namespace Erp.Platform.Migrations name: "Acc_T_WaybillType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -718,10 +718,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Address = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Address = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Email = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), - Location = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Location = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), TaxNumber = table.Column(type: "bigint", nullable: true), BankJson = table.Column(type: "text", nullable: true), WorkHoursJson = table.Column(type: "text", nullable: true), @@ -752,7 +752,7 @@ namespace Erp.Platform.Migrations Address = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), NumberOfBranches = table.Column(type: "int", nullable: false), NumberOfUsers = table.Column(type: "int", nullable: false), - Message = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false), + Message = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -810,9 +810,9 @@ namespace Erp.Platform.Migrations name: "Adm_T_EducationStatus", columns: table => new { - Id = table.Column(type: "uniqueidentifier", maxLength: 50, nullable: false), + Id = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Order = table.Column(type: "smallint", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -855,16 +855,16 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Email = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Address = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), - TaxOffice = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Address = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TaxOffice = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), TaxNumber = table.Column(type: "bigint", nullable: true), MobileNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), FaxNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -907,7 +907,7 @@ namespace Erp.Platform.Migrations Total = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), PaymentMethodId = table.Column(type: "uniqueidentifier", nullable: false), Installment = table.Column(type: "int", nullable: true), - PaymentDataJson = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + PaymentDataJson = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -950,13 +950,13 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Order = table.Column(type: "int", nullable: false), MonthlyPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true), YearlyPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true), IsQuantityBased = table.Column(type: "bit", nullable: false), - ImageUrl = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: true), + ImageUrl = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -976,11 +976,11 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Email = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Address = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Address = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1064,7 +1064,7 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1085,17 +1085,17 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), Plate = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - Brand = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Brand = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), ModelYear = table.Column(type: "int", nullable: true), DriverNationalId = table.Column(type: "nvarchar(11)", maxLength: 11, nullable: true), - DriverName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DriverName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), DriverPhone1 = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), DriverPhone2 = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), AssistantDriverNationalId = table.Column(type: "nvarchar(11)", maxLength: 11, nullable: true), - AssistantDriverName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + AssistantDriverName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), AssistantDriverPhone1 = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), AssistantDriverPhone2 = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Status = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1115,9 +1115,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - StartHour = table.Column(type: "datetime2", maxLength: 8, nullable: false), - EndHour = table.Column(type: "datetime2", maxLength: 8, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StartTime = table.Column(type: "datetime2", maxLength: 8, nullable: false), + EndTime = table.Column(type: "datetime2", maxLength: 8, nullable: false), Monday = table.Column(type: "bit", nullable: true), Tuesday = table.Column(type: "bit", nullable: true), Wednesday = table.Column(type: "bit", nullable: true), @@ -1144,8 +1144,8 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1166,11 +1166,11 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Subject = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Subject = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), TeacherId = table.Column(type: "uniqueidentifier", nullable: true), - TeacherName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + TeacherName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), ScheduledStartTime = table.Column(type: "datetime2", nullable: false), ScheduledEndTime = table.Column(type: "datetime2", nullable: true), Duration = table.Column(type: "int", nullable: false), @@ -1198,8 +1198,8 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1218,9 +1218,9 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Tags = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Tags = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), TenantId = table.Column(type: "uniqueidentifier", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1240,9 +1240,9 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Color = table.Column(type: "nvarchar(7)", maxLength: 7, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Color = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), UsageCount = table.Column(type: "int", nullable: false, defaultValue: 0), TenantId = table.Column(type: "uniqueidentifier", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -1262,10 +1262,10 @@ namespace Erp.Platform.Migrations name: "Crm_T_CustomerSegment", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1284,10 +1284,10 @@ namespace Erp.Platform.Migrations name: "Crm_T_CustomerType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1308,10 +1308,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), IsActive = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1330,10 +1330,10 @@ namespace Erp.Platform.Migrations name: "Crm_T_SalesOrderStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1354,16 +1354,16 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Name = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Icon = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), - Color = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Color = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), BackgroundColor = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Category = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Criteria = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Category = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Criteria = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Points = table.Column(type: "int", nullable: false), - Rarity = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Rarity = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1384,7 +1384,7 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1435,8 +1435,8 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Title = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), Deadline = table.Column(type: "datetime2", nullable: false), Responses = table.Column(type: "int", nullable: false, defaultValue: 0), Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), @@ -1460,10 +1460,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), - AssessorTypes = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + AssessorTypes = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), QuestionGroupsJson = table.Column(type: "text", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1482,10 +1482,10 @@ namespace Erp.Platform.Migrations name: "Mnt_T_FaultStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1504,10 +1504,10 @@ namespace Erp.Platform.Migrations name: "Mnt_T_FaultType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1526,10 +1526,10 @@ namespace Erp.Platform.Migrations name: "Mnt_T_WorkcenterStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1548,10 +1548,10 @@ namespace Erp.Platform.Migrations name: "Mnt_T_WorkcenterType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1570,10 +1570,10 @@ namespace Erp.Platform.Migrations name: "Mnt_T_WorkorderStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1592,10 +1592,10 @@ namespace Erp.Platform.Migrations name: "Mnt_T_WorkorderType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1614,10 +1614,10 @@ namespace Erp.Platform.Migrations name: "Mrp_T_BomType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1638,8 +1638,8 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1658,10 +1658,10 @@ namespace Erp.Platform.Migrations name: "Mrp_T_ProductionOrderStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1680,10 +1680,10 @@ namespace Erp.Platform.Migrations name: "Mrp_T_ProductionOrderType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1750,7 +1750,7 @@ namespace Erp.Platform.Migrations ArrivalTime = table.Column(type: "datetime2", maxLength: 10, nullable: false), Capacity = table.Column(type: "int", nullable: false, defaultValue: 0), Available = table.Column(type: "int", nullable: false, defaultValue: 0), - Route = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Route = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1770,19 +1770,19 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Instructor = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Instructor = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Duration = table.Column(type: "int", nullable: false, defaultValue: 0), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), MaxParticipants = table.Column(type: "int", nullable: false, defaultValue: 0), Enrolled = table.Column(type: "int", nullable: false, defaultValue: 0), - Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Location = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Thumbnail = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Location = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Thumbnail = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1879,13 +1879,13 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Cron = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Cron = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), WorkerType = table.Column(type: "int", nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), - DataSourceCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BeforeSp = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - AfterSp = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + DataSourceCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BeforeSp = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + AfterSp = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Options = table.Column(type: "text", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -1906,18 +1906,18 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - TableName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + TableName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Order = table.Column(type: "smallint", nullable: false), - ColumnName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Caption = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - HeaderCss = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Css = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - FooterCss = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - DataType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DataFormat = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ColumnName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Caption = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HeaderCss = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Css = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + FooterCss = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DataFormat = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), IsHidden = table.Column(type: "bit", nullable: false), IsProtected = table.Column(type: "bit", nullable: false), - SubTotal = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SubTotal = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), Width = table.Column(type: "int", nullable: false) }, constraints: table => @@ -1933,7 +1933,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), UiCultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - DisplayName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + DisplayName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), IsEnabled = table.Column(type: "bit", nullable: false), TwoLetterISOLanguageName = table.Column(type: "nvarchar(2)", maxLength: 2, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -1955,8 +1955,8 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Key = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - ResourceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Key = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ResourceName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -1993,10 +1993,10 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - NotificationType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - RecipientType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - RecipientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Channel = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + NotificationType = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + RecipientType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecipientId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Channel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), IsActive = table.Column(type: "bit", nullable: false), IsFixed = table.Column(type: "bit", nullable: false), IsCustomized = table.Column(type: "bit", nullable: false), @@ -2021,7 +2021,7 @@ namespace Erp.Platform.Migrations Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), NameKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), DescriptionKey = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - DefaultValue = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + DefaultValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), IsVisibleToClients = table.Column(type: "bit", nullable: false), Providers = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), IsInherited = table.Column(type: "bit", nullable: false), @@ -2049,10 +2049,10 @@ namespace Erp.Platform.Migrations name: "Prj_T_Category", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2071,10 +2071,10 @@ namespace Erp.Platform.Migrations name: "Prj_T_Risk", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2093,10 +2093,10 @@ namespace Erp.Platform.Migrations name: "Prj_T_Status", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2115,10 +2115,10 @@ namespace Erp.Platform.Migrations name: "Prj_T_TaskType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2137,10 +2137,10 @@ namespace Erp.Platform.Migrations name: "Prj_T_Type", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2159,10 +2159,10 @@ namespace Erp.Platform.Migrations name: "Prj_T_WorkType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2183,8 +2183,8 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2204,9 +2204,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2226,9 +2226,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Order = table.Column(type: "smallint", nullable: true), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2248,7 +2248,7 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2268,9 +2268,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2290,8 +2290,8 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2369,7 +2369,7 @@ namespace Erp.Platform.Migrations name: "Sas_H_Currency", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Symbol = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Rate = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), @@ -2393,7 +2393,7 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), DataSourceType = table.Column(type: "int", nullable: false), ConnectionString = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -2447,12 +2447,12 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), ListFormCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), - DataSourceCode = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + DataSourceCode = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), SelectCommandType = table.Column(type: "int", nullable: false), TableName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), SelectCommand = table.Column(type: "text", nullable: true), - KeyFieldName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + KeyFieldName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), KeyFieldDbSourceType = table.Column(type: "int", nullable: false), SelectFieldsDefaultValueJson = table.Column(type: "text", nullable: true), Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), @@ -2553,20 +2553,20 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - DisplayName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Order = table.Column(type: "int", nullable: false), - Url = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), - Icon = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ParentCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Icon = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ParentCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CssClass = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), RequiredPermissionName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - Target = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Target = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), IsDisabled = table.Column(type: "bit", nullable: false), - ElementId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ElementId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), UserId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), RoleId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - CultureName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CultureName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2645,12 +2645,12 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Code = table.Column(type: "nvarchar(max)", nullable: false), - Props = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Props = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false), - Dependencies = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Dependencies = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2674,7 +2674,7 @@ namespace Erp.Platform.Migrations Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), Method = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - DataSourceCode = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + DataSourceCode = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Sql = table.Column(type: "nvarchar(max)", nullable: false), ParametersJson = table.Column(type: "text", nullable: true), PermissionsJson = table.Column(type: "text", nullable: true), @@ -2697,17 +2697,17 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Menu = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - DisplayName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - TableName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Menu = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + TableName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false), IsFullAuditedEntity = table.Column(type: "bit", nullable: false), IsMultiTenant = table.Column(type: "bit", nullable: false), - MigrationStatus = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + MigrationStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), MigrationId = table.Column(type: "uniqueidentifier", nullable: true), - EndpointStatus = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + EndpointStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -2729,7 +2729,7 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), DisplayName = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Description = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), Code = table.Column(type: "text", nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CompilationStatus = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), @@ -2759,10 +2759,10 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - System = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Group = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + System = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), Term = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Weight = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Weight = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), Url = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true) }, constraints: table => @@ -2798,11 +2798,11 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - EntityName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - EntityId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + EntityName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + EntityId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Subject = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Content = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false), + Content = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), FilesJson = table.Column(type: "nvarchar(max)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2824,7 +2824,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Description = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), Icon = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2863,10 +2863,10 @@ namespace Erp.Platform.Migrations name: "Scp_T_DeliveryTerm", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2887,10 +2887,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), ParentGroupId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2917,9 +2917,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2938,10 +2938,10 @@ namespace Erp.Platform.Migrations name: "Scp_T_OrderStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2960,10 +2960,10 @@ namespace Erp.Platform.Migrations name: "Scp_T_PaymentTerm", columns: table => new { - Id = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -2982,10 +2982,10 @@ namespace Erp.Platform.Migrations name: "Scp_T_QuotationStatus", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3004,10 +3004,10 @@ namespace Erp.Platform.Migrations name: "Scp_T_RequestType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3026,10 +3026,10 @@ namespace Erp.Platform.Migrations name: "Scp_T_SupplyCardType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3048,10 +3048,10 @@ namespace Erp.Platform.Migrations name: "Scp_T_SupplyType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3075,7 +3075,7 @@ namespace Erp.Platform.Migrations FunctionName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), SchemaName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), FunctionType = table.Column(type: "int", nullable: false), FunctionBody = table.Column(type: "nvarchar(max)", nullable: false), ReturnType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), @@ -3084,7 +3084,7 @@ namespace Erp.Platform.Migrations Category = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), IsDeployed = table.Column(type: "bit", nullable: false), LastDeployedAt = table.Column(type: "datetime2", nullable: true), - Parameters = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + Parameters = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -3106,16 +3106,16 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), QueryText = table.Column(type: "nvarchar(max)", nullable: false), DataSourceCode = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Status = table.Column(type: "int", nullable: false), Category = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - Tags = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Tags = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), LastExecutedAt = table.Column(type: "datetime2", nullable: true), ExecutionCount = table.Column(type: "int", nullable: false), IsModifyingData = table.Column(type: "bit", nullable: false), - Parameters = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + Parameters = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -3138,14 +3138,14 @@ namespace Erp.Platform.Migrations ProcedureName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), SchemaName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), ProcedureBody = table.Column(type: "nvarchar(max)", nullable: false), DataSourceCode = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Status = table.Column(type: "int", nullable: false), Category = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), IsDeployed = table.Column(type: "bit", nullable: false), LastDeployedAt = table.Column(type: "datetime2", nullable: true), - Parameters = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + Parameters = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -3168,7 +3168,7 @@ namespace Erp.Platform.Migrations ViewName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), SchemaName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), ViewDefinition = table.Column(type: "nvarchar(max)", nullable: false), DataSourceCode = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Status = table.Column(type: "int", nullable: false), @@ -3193,11 +3193,11 @@ namespace Erp.Platform.Migrations name: "Str_T_LocationType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3216,10 +3216,10 @@ namespace Erp.Platform.Migrations name: "Str_T_MovementType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3240,17 +3240,17 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Priority = table.Column(type: "int", nullable: false, defaultValue: 1), - Strategy = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Strategy = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), MaterialTypeId = table.Column(type: "uniqueidentifier", nullable: true), MaterialGroupId = table.Column(type: "uniqueidentifier", nullable: true), - WarehouseId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - TargetZoneId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TargetLocationId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WarehouseId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TargetZoneId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + TargetLocationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -3268,11 +3268,11 @@ namespace Erp.Platform.Migrations name: "Str_T_ReferenceType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - MovementTypeName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + MovementTypeName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3291,11 +3291,11 @@ namespace Erp.Platform.Migrations name: "Str_T_WarehouseType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3314,11 +3314,11 @@ namespace Erp.Platform.Migrations name: "Str_T_ZoneType", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3691,7 +3691,7 @@ namespace Erp.Platform.Migrations BranchId = table.Column(type: "uniqueidentifier", nullable: true), SessionId = table.Column(type: "uniqueidentifier", nullable: false), StudentId = table.Column(type: "uniqueidentifier", nullable: true), - StudentName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + StudentName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), JoinTime = table.Column(type: "datetime2", nullable: false), LeaveTime = table.Column(type: "datetime2", nullable: true), TotalDurationMinutes = table.Column(type: "int", nullable: false), @@ -3723,11 +3723,11 @@ namespace Erp.Platform.Migrations BranchId = table.Column(type: "uniqueidentifier", nullable: true), SessionId = table.Column(type: "uniqueidentifier", nullable: false), SenderId = table.Column(type: "uniqueidentifier", nullable: true), - SenderName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Message = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false), + SenderName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Message = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), Timestamp = table.Column(type: "datetime2", nullable: false), RecipientId = table.Column(type: "uniqueidentifier", nullable: true), - RecipientName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + RecipientName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), IsTeacher = table.Column(type: "bit", nullable: false), MessageType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -3758,7 +3758,7 @@ namespace Erp.Platform.Migrations BranchId = table.Column(type: "uniqueidentifier", nullable: true), SessionId = table.Column(type: "uniqueidentifier", nullable: false), UserId = table.Column(type: "uniqueidentifier", nullable: true), - UserName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + UserName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), IsTeacher = table.Column(type: "bit", nullable: false), IsAudioMuted = table.Column(type: "bit", nullable: false), IsVideoMuted = table.Column(type: "bit", nullable: false), @@ -3766,7 +3766,7 @@ namespace Erp.Platform.Migrations IsKicked = table.Column(type: "bit", nullable: false, defaultValue: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), JoinTime = table.Column(type: "datetime2", nullable: false), - ConnectionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ConnectionId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -3791,16 +3791,16 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - QuestionType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + QuestionType = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Points = table.Column(type: "int", nullable: false, defaultValue: 0), - Title = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false), - Content = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - MediaUrl = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Title = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + Content = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + MediaUrl = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), MediaType = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), - CorrectAnswer = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + CorrectAnswer = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Difficulty = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), TimeLimit = table.Column(type: "int", nullable: false, defaultValue: 0), - Explanation = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Explanation = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), QuestionPoolId = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -3829,7 +3829,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), PayrollItemId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Amount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), ItemType = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), Taxable = table.Column(type: "bit", nullable: true, defaultValue: false), @@ -3860,8 +3860,8 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), SurveyId = table.Column(type: "uniqueidentifier", nullable: false), - QuestionText = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + QuestionText = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Order = table.Column(type: "int", nullable: false), IsRequired = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -3889,9 +3889,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CategoryId = table.Column(type: "uniqueidentifier", nullable: false), DefaultDuration = table.Column(type: "int", nullable: false, defaultValue: 0), RequiresSetup = table.Column(type: "bit", nullable: false, defaultValue: false), @@ -3948,17 +3948,17 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TemplateId = table.Column(type: "uniqueidentifier", nullable: false), - From = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - To = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - MailParameter = table.Column(type: "nvarchar(max)", maxLength: 8000, nullable: true), - TableName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - TableParameter = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Attachment = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - AttachmentParameter = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + From = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + To = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + MailParameter = table.Column(type: "nvarchar(max)", maxLength: 8192, nullable: true), + TableName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + TableParameter = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Attachment = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + AttachmentParameter = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), SendStatus = table.Column(type: "bit", nullable: false), SendTime = table.Column(type: "datetime2", nullable: true), - AwsMessageId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - RelatedRecordId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + AwsMessageId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + RelatedRecordId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -3985,9 +3985,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - Key = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - ResourceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + Key = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ResourceName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Value = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4019,11 +4019,11 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), NotificationRuleId = table.Column(type: "uniqueidentifier", nullable: false), - NotificationChannel = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - NotificationType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Identifier = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + NotificationChannel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + NotificationType = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Identifier = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), UserId = table.Column(type: "uniqueidentifier", nullable: true), - Message = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false), + Message = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), IsSent = table.Column(type: "bit", nullable: false), IsRead = table.Column(type: "bit", nullable: false), ReadTime = table.Column(type: "datetime2", nullable: true), @@ -4156,9 +4156,9 @@ namespace Erp.Platform.Migrations ListFormCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), UserId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), RoleId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), - FieldName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - CaptionName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + FieldName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + CaptionName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), Visible = table.Column(type: "bit", nullable: true, defaultValue: true), IsActive = table.Column(type: "bit", nullable: true, defaultValue: true), Width = table.Column(type: "int", nullable: true, defaultValue: 100), @@ -4174,7 +4174,7 @@ namespace Erp.Platform.Migrations ColumnCustomizationJson = table.Column(type: "text", nullable: true), TotalSummaryJson = table.Column(type: "text", nullable: true), GroupSummaryJson = table.Column(type: "text", nullable: true), - ColumnCssClass = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ColumnCssClass = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), ColumnCssValue = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), JoinTableJson = table.Column(type: "text", nullable: true), EditingJson = table.Column(type: "text", nullable: true), @@ -4184,7 +4184,7 @@ namespace Erp.Platform.Migrations PermissionJson = table.Column(type: "text", nullable: true), PivotSettingsJson = table.Column(type: "text", nullable: true), Alignment = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true, defaultValue: "left"), - Format = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + Format = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), EditorOptions = table.Column(type: "text", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -4240,7 +4240,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Day = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), Lesson1 = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), Lesson2 = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), @@ -4272,8 +4272,8 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4302,8 +4302,8 @@ namespace Erp.Platform.Migrations BranchId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - StartTime = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: true), - EndTime = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: true), + StartTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + EndTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), LessonMinute = table.Column(type: "int", nullable: false), LessonBreakMinute = table.Column(type: "int", nullable: false), LessonCount = table.Column(type: "int", nullable: false), @@ -4346,7 +4346,7 @@ namespace Erp.Platform.Migrations Date = table.Column(type: "datetime2", nullable: false), Type = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), TotalCalorie = table.Column(type: "decimal(9,2)", precision: 9, scale: 2, nullable: false), - Materials = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Materials = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4393,12 +4393,12 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), EntityId = table.Column(type: "uniqueidentifier", nullable: false), - EntityName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - FileName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + EntityName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + FileName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), SqlScript = table.Column(type: "nvarchar(max)", nullable: false), - Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), AppliedAt = table.Column(type: "datetime2", nullable: true), - ErrorMessage = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + ErrorMessage = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4421,10 +4421,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - EntityName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + EntityName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Method = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - Path = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - OperationType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Path = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + OperationType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CsharpCode = table.Column(type: "nvarchar(max)", nullable: false), IsActive = table.Column(type: "bit", nullable: false), EntityId = table.Column(type: "uniqueidentifier", nullable: false), @@ -4453,13 +4453,13 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), EntityId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), IsRequired = table.Column(type: "bit", nullable: false), MaxLength = table.Column(type: "int", nullable: true), IsUnique = table.Column(type: "bit", nullable: false), DefaultValue = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), DisplayOrder = table.Column(type: "int", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -4487,10 +4487,10 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), HtmlContent = table.Column(type: "nvarchar(max)", nullable: false), CategoryId = table.Column(type: "uniqueidentifier", nullable: false), - Tags = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Tags = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4517,9 +4517,9 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), RuleId = table.Column(type: "uniqueidentifier", nullable: false), - ConditionType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + ConditionType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Operator = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - Value = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Value = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4567,7 +4567,7 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - Text = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + Text = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), IsCorrect = table.Column(type: "bit", nullable: false, defaultValue: false), QuestionPoolId = table.Column(type: "uniqueidentifier", nullable: false), QuestionId = table.Column(type: "uniqueidentifier", nullable: false), @@ -4598,7 +4598,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), QuestionId = table.Column(type: "uniqueidentifier", nullable: false), - Text = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false), + Text = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), Order = table.Column(type: "int", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -4658,10 +4658,10 @@ namespace Erp.Platform.Migrations columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), - AwsMessageId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + AwsMessageId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), EventDate = table.Column(type: "datetime2", nullable: true), Event = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - MailAddress = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + MailAddress = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), ResponseDescription = table.Column(type: "nvarchar(max)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -4825,8 +4825,8 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), RegistrationTypeId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4862,8 +4862,8 @@ namespace Erp.Platform.Migrations ScheduleId = table.Column(type: "uniqueidentifier", nullable: false), Day = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), LessonNo = table.Column(type: "int", nullable: true), - StartTime = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: true), - EndTime = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: true), + StartTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + EndTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), LessonMinute = table.Column(type: "int", nullable: true), LessonBreakMinute = table.Column(type: "int", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -4894,7 +4894,7 @@ namespace Erp.Platform.Migrations TemplateId = table.Column(type: "uniqueidentifier", nullable: true), TemplateName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), GeneratedContent = table.Column(type: "nvarchar(max)", nullable: false), - Parameters = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + Parameters = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -4921,12 +4921,12 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), TemplateId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Placeholder = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Placeholder = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), Type = table.Column(type: "nvarchar(max)", nullable: false), - DefaultValue = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + DefaultValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Required = table.Column(type: "bit", nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5018,10 +5018,10 @@ namespace Erp.Platform.Migrations BranchId = table.Column(type: "uniqueidentifier", nullable: true), ClassTypeId = table.Column(type: "uniqueidentifier", nullable: false), LevelType = table.Column(type: "nvarchar(15)", maxLength: 15, nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Order = table.Column(type: "int", nullable: false), LessonCount = table.Column(type: "int", nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), LessonDuration = table.Column(type: "int", nullable: true), MonthlyPaymentRate = table.Column(type: "decimal(18,4)", precision: 18, scale: 4, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -5056,23 +5056,23 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), - TypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - CheckNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - BankName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - BranchName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - AccountNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - DrawerName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PayeeName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + TypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CheckNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + BankName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + BranchName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + AccountNumber = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + DrawerName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + PayeeName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), CurrentAccountId = table.Column(type: "uniqueidentifier", nullable: true), IssueDate = table.Column(type: "datetime2", nullable: false), DueDate = table.Column(type: "datetime2", nullable: false), Amount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), BankingDate = table.Column(type: "datetime2", nullable: true), CollectionDate = table.Column(type: "datetime2", nullable: true), - EndorsedTo = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + EndorsedTo = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5106,16 +5106,16 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), PartnerId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), TaxNumber = table.Column(type: "bigint", nullable: true), TaxOffice = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), CreditLimit = table.Column(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false, defaultValue: 0m), Balance = table.Column(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false, defaultValue: 0m), Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), Risk = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), - PaymentTermId = table.Column(type: "nvarchar(100)", nullable: true), + PaymentTermId = table.Column(type: "nvarchar(128)", nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -5142,10 +5142,10 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), - InvoiceTypeId = table.Column(type: "nvarchar(50)", nullable: false), + InvoiceTypeId = table.Column(type: "nvarchar(64)", nullable: false), CurrentAccountId = table.Column(type: "uniqueidentifier", nullable: true), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - InvoiceNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + InvoiceNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), InvoiceDate = table.Column(type: "datetime2", nullable: false), DueDate = table.Column(type: "datetime2", nullable: false), Subtotal = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), @@ -5154,10 +5154,10 @@ namespace Erp.Platform.Migrations TotalAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), PaidAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), RemainingAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - PaymentStatusId = table.Column(type: "nvarchar(50)", nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), + PaymentStatusId = table.Column(type: "nvarchar(64)", nullable: true), WaybillId = table.Column(type: "uniqueidentifier", nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5202,25 +5202,25 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), - WaybillTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WaybillTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CurrentAccountId = table.Column(type: "uniqueidentifier", nullable: true), - WaybillStatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - WaybillNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WaybillStatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WaybillNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), WaybillDate = table.Column(type: "datetime2", nullable: false), DeliveryDate = table.Column(type: "datetime2", nullable: true), Subtotal = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TaxAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), DiscountAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TotalAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), IsInvoiced = table.Column(type: "bit", nullable: false, defaultValue: false), InvoiceId = table.Column(type: "uniqueidentifier", nullable: true), - DeliveryAddress = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - ReceiverName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ReceiverPhone = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CarrierCompany = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - TrackingNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + DeliveryAddress = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + ReceiverName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ReceiverPhone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CarrierCompany = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + TrackingNumber = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5269,7 +5269,7 @@ namespace Erp.Platform.Migrations TaxRate = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TaxAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), NetAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5306,7 +5306,7 @@ namespace Erp.Platform.Migrations TaxRate = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TaxAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), NetAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5338,7 +5338,7 @@ namespace Erp.Platform.Migrations ContentEn = table.Column(type: "nvarchar(max)", nullable: false), Summary = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), CoverImage = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - ReadTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ReadTime = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CategoryId = table.Column(type: "uniqueidentifier", nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), ViewCount = table.Column(type: "int", nullable: true), @@ -5390,19 +5390,19 @@ namespace Erp.Platform.Migrations Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Website = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), - PaymentTermId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + PaymentTermId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), CreditLimit = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), LastOrderDate = table.Column(type: "datetime2", nullable: true), Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - CustomerTypeId = table.Column(type: "nvarchar(50)", nullable: true), - CustomerSegmentId = table.Column(type: "nvarchar(50)", nullable: true), + CustomerTypeId = table.Column(type: "nvarchar(64)", nullable: true), + CustomerSegmentId = table.Column(type: "nvarchar(64)", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: true), TeamCode = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: true), TotalRevenue = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), AverageOrderValue = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), LifetimeValue = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - SupplierTypeId = table.Column(type: "nvarchar(50)", nullable: true), - SupplyCardTypeId = table.Column(type: "nvarchar(50)", nullable: true), + SupplierTypeId = table.Column(type: "nvarchar(64)", nullable: true), + SupplyCardTypeId = table.Column(type: "nvarchar(64)", nullable: true), CardNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), ValidFrom = table.Column(type: "datetime2", nullable: true), ValidTo = table.Column(type: "datetime2", nullable: true), @@ -5467,7 +5467,7 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), PartnerId = table.Column(type: "uniqueidentifier", nullable: false), BankName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - AccountNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + AccountNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Iban = table.Column(type: "nvarchar(34)", maxLength: 34, nullable: false), SwiftCode = table.Column(type: "nvarchar(11)", maxLength: 11, nullable: true), AccountOwner = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), @@ -5505,8 +5505,8 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), PartnerId = table.Column(type: "uniqueidentifier", nullable: false), - Certificate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Issuer = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Certificate = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Issuer = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IssueDate = table.Column(type: "datetime2", nullable: false), ExpiryDate = table.Column(type: "datetime2", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -5568,7 +5568,7 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - OrderNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + OrderNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CustomerId = table.Column(type: "uniqueidentifier", nullable: false), OrderDate = table.Column(type: "datetime2", nullable: false), RequestedDeliveryDate = table.Column(type: "datetime2", nullable: false), @@ -5579,14 +5579,14 @@ namespace Erp.Platform.Migrations DiscountAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TotalAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), - PaymentTermId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - DeliveryTermId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + PaymentTermId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DeliveryTermId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), ExchangeRate = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), DiscountRate = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TaxRate = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - SpecialInstructions = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - SalesOrderStatusId = table.Column(type: "nvarchar(50)", nullable: true), + SpecialInstructions = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + SalesOrderStatusId = table.Column(type: "nvarchar(64)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5629,13 +5629,13 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - MovementNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + MovementNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), MovementDate = table.Column(type: "datetime2", nullable: false), - MovementType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MovementType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), PartnerId = table.Column(type: "uniqueidentifier", nullable: true), - ReferenceTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - ReferenceDocument = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + ReferenceTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ReferenceDocument = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), IsTransfer = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -5700,10 +5700,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - OrderNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - OrderTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Priority = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + OrderNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + OrderTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), PlannedStartDate = table.Column(type: "datetime2", nullable: false), PlannedEndDate = table.Column(type: "datetime2", nullable: false), ActualStartDate = table.Column(type: "datetime2", nullable: true), @@ -5715,8 +5715,8 @@ namespace Erp.Platform.Migrations UomId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), PlannedCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), ActualCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), - CustomerRequirement = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), + CustomerRequirement = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5754,10 +5754,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Barcode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Barcode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), MaterialTypeId = table.Column(type: "uniqueidentifier", nullable: true), MaterialGroupId = table.Column(type: "uniqueidentifier", nullable: true), UomId = table.Column(type: "nvarchar(64)", nullable: true), @@ -5766,7 +5766,7 @@ namespace Erp.Platform.Migrations Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), TotalStock = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - TrackingType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TrackingType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5805,15 +5805,15 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), MaterialId = table.Column(type: "uniqueidentifier", nullable: false), - WarehouseId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - ZoneId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - LocationId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WarehouseId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ZoneId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Quantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), ReservedQuantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), AvailableQuantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), UomId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LotNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - SerialNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + LotNumber = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + SerialNumber = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), ExpiryDate = table.Column(type: "datetime2", nullable: true), ReceivedDate = table.Column(type: "datetime2", nullable: false), LastMovementDate = table.Column(type: "datetime2", nullable: false), @@ -5853,9 +5853,9 @@ namespace Erp.Platform.Migrations DiscountAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TaxRate = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), TaxAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -5894,9 +5894,9 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), MaterialId = table.Column(type: "uniqueidentifier", nullable: false), - BomTypeId = table.Column(type: "nvarchar(50)", nullable: false), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + BomTypeId = table.Column(type: "nvarchar(64)", nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), ValidFrom = table.Column(type: "datetime2", nullable: false), ValidTo = table.Column(type: "datetime2", nullable: true), BaseQuantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 1m), @@ -5984,8 +5984,8 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), MaterialId = table.Column(type: "uniqueidentifier", nullable: false), - SpecificationName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - SpecificationValue = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + SpecificationName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + SpecificationValue = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), UomId = table.Column(type: "nvarchar(64)", nullable: true), IsRequired = table.Column(type: "bit", nullable: false, defaultValue: false), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -6020,18 +6020,18 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), OpportunityId = table.Column(type: "uniqueidentifier", nullable: true), - ActivityType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Subject = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + ActivityType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Subject = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), ActivityDate = table.Column(type: "datetime2", nullable: false), StartTime = table.Column(type: "datetime2", nullable: true), EndTime = table.Column(type: "datetime2", nullable: true), Duration = table.Column(type: "int", nullable: true), FollowUpDate = table.Column(type: "datetime2", nullable: true), - FollowUpActivity = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - Outcome = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - NextSteps = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + FollowUpActivity = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + Outcome = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + NextSteps = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6052,10 +6052,10 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), OpportunityId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Website = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: true), - Strengths = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - Weaknesses = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Website = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Strengths = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + Weaknesses = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), MarketShare = table.Column(type: "int", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -6076,11 +6076,11 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), PartnerId = table.Column(type: "uniqueidentifier", nullable: false), ContactId = table.Column(type: "uniqueidentifier", nullable: true), - Stage = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Stage = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Probability = table.Column(type: "int", nullable: false, defaultValue: 0), EstimatedValue = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), @@ -6090,7 +6090,7 @@ namespace Erp.Platform.Migrations TeamCode = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: true), SourceId = table.Column(type: "uniqueidentifier", nullable: false), LossReasonId = table.Column(type: "uniqueidentifier", nullable: true), - Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6121,9 +6121,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), ParentCostCenterId = table.Column(type: "uniqueidentifier", nullable: true), ResponsibleEmployeeId = table.Column(type: "uniqueidentifier", nullable: true), DepartmentId = table.Column(type: "uniqueidentifier", nullable: true), @@ -6158,8 +6158,8 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), Code = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), ParentDepartmentId = table.Column(type: "uniqueidentifier", nullable: true), ManagerId = table.Column(type: "uniqueidentifier", nullable: true), CostCenterId = table.Column(type: "uniqueidentifier", nullable: true), @@ -6196,11 +6196,11 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Name = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), DepartmentId = table.Column(type: "uniqueidentifier", nullable: true), - Level = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Level = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), MinSalary = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), MaxSalary = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), @@ -6233,14 +6233,14 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), TemplateId = table.Column(type: "uniqueidentifier", nullable: true), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), DepartmentId = table.Column(type: "uniqueidentifier", nullable: true), - TargetEmployees = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + TargetEmployees = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6270,18 +6270,18 @@ namespace Erp.Platform.Migrations name: "Mnt_T_Workcenter", columns: table => new { - Id = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - WorkcenterTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Manufacturer = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Model = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - SerialNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + WorkcenterTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Manufacturer = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Model = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + SerialNumber = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), InstallationDate = table.Column(type: "datetime2", nullable: false), WarrantyExpiry = table.Column(type: "datetime2", nullable: true), - Location = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), + Location = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), DepartmentId = table.Column(type: "uniqueidentifier", nullable: false), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), Criticality = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), @@ -6289,7 +6289,7 @@ namespace Erp.Platform.Migrations CostPerHour = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), SetupTime = table.Column(type: "int", nullable: false, defaultValue: 0), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), - WorkcenterStatusId = table.Column(type: "nvarchar(50)", nullable: true), + WorkcenterStatusId = table.Column(type: "nvarchar(64)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6326,7 +6326,7 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), DepartmentId = table.Column(type: "uniqueidentifier", nullable: false), MaterialTypeId = table.Column(type: "uniqueidentifier", nullable: false), AmountThreshold = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), @@ -6362,10 +6362,10 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Avatar = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), - NationalId = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Avatar = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + NationalId = table.Column(type: "nvarchar(11)", maxLength: 11, nullable: true), BirthDate = table.Column(type: "datetime2", nullable: false), Gender = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), MaritalStatus = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), @@ -6373,27 +6373,27 @@ namespace Erp.Platform.Migrations City = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Township = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - PostalCode = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + PostalCode = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), MobileNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Email = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), - Address1 = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Address2 = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - EmergencyContactName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - EmergencyContactRelationship = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Address1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Address2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + EmergencyContactName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + EmergencyContactRelationship = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), EmergencyContactPhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), HireDate = table.Column(type: "datetime2", nullable: false), TerminationDate = table.Column(type: "datetime2", nullable: true), EmploymentTypeId = table.Column(type: "uniqueidentifier", nullable: true), JobPositionId = table.Column(type: "uniqueidentifier", nullable: true), DepartmentId = table.Column(type: "uniqueidentifier", nullable: true), - WorkLocation = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), + WorkLocation = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), ManagerId = table.Column(type: "uniqueidentifier", nullable: true), BaseSalary = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), - PayrollGroup = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PayrollGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), BankId = table.Column(type: "uniqueidentifier", nullable: true), - IbanNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + IbanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), BadgeId = table.Column(type: "uniqueidentifier", nullable: true), EmployeeStatus = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), @@ -6448,25 +6448,25 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - WorkcenterId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Location = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), - FaultTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Priority = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Severity = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + WorkcenterId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Location = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + FaultTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Severity = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), EstimatedRepairTime = table.Column(type: "int", nullable: true), FollowUpRequired = table.Column(type: "bit", nullable: false), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), IsActive = table.Column(type: "bit", nullable: false), - AssignedTo = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), + AssignedTo = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), ActualRepairTime = table.Column(type: "int", nullable: true), - WorkorderId = table.Column(type: "uniqueidentifier", maxLength: 100, nullable: false), - ResolutionNotes = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - ClosedBy = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), + WorkorderId = table.Column(type: "uniqueidentifier", maxLength: 128, nullable: false), + ResolutionNotes = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + ClosedBy = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), ClosedAt = table.Column(type: "datetime2", nullable: true), - FaultStatusId = table.Column(type: "nvarchar(50)", nullable: true), + FaultStatusId = table.Column(type: "nvarchar(64)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6503,19 +6503,19 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - WorkcenterId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - PlanType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Priority = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + WorkcenterId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + PlanType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), Frequency = table.Column(type: "int", nullable: false), - FrequencyUnit = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + FrequencyUnit = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), EstimatedDuration = table.Column(type: "int", nullable: false), - Instructions = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false), + Instructions = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), NextDue = table.Column(type: "datetime2", nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), LastExecuted = table.Column(type: "datetime2", nullable: false), - RequiredSkillsJson = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + RequiredSkillsJson = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6541,9 +6541,9 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WorkcenterId = table.Column(type: "nvarchar(100)", nullable: true), - SpecificationName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - SpecificationValue = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + WorkcenterId = table.Column(type: "nvarchar(128)", nullable: true), + SpecificationName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + SpecificationValue = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), UomId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), IsRequired = table.Column(type: "bit", nullable: false, defaultValue: false), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -6577,17 +6577,17 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), OperationTypeId = table.Column(type: "uniqueidentifier", nullable: false), - WorkcenterId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + WorkcenterId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), StandardTime = table.Column(type: "int", nullable: false, defaultValue: 0), SetupTime = table.Column(type: "int", nullable: false, defaultValue: 0), LaborCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), MachineCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), OverheadCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Instructions = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Instructions = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), QualityCheckRequired = table.Column(type: "bit", nullable: false, defaultValue: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -6623,7 +6623,7 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), ApprovalId = table.Column(type: "uniqueidentifier", nullable: false), Level = table.Column(type: "int", nullable: false), - EmployeeIds = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), + EmployeeIds = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), TimeoutDays = table.Column(type: "int", nullable: false, defaultValue: 0), IsRequired = table.Column(type: "bit", nullable: false), IsParallel = table.Column(type: "bit", nullable: false), @@ -6653,17 +6653,17 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Amount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), RequestDate = table.Column(type: "datetime2", nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Project = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Project = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), ApproverId = table.Column(type: "uniqueidentifier", nullable: true), ApprovalDate = table.Column(type: "datetime2", nullable: true), - RejectionReason = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + RejectionReason = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6695,18 +6695,18 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), - LeaveType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + LeaveType = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), TotalDays = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), IsHalfDay = table.Column(type: "bit", nullable: false), - Reason = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Reason = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), AppliedDate = table.Column(type: "datetime2", nullable: false), ApprovedById = table.Column(type: "uniqueidentifier", nullable: true), ApprovedDate = table.Column(type: "datetime2", nullable: true), - RejectionReason = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Attachments = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + RejectionReason = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Attachments = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6734,14 +6734,14 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), Date = table.Column(type: "datetime2", nullable: false), - StartTime = table.Column(type: "datetime2", maxLength: 10, nullable: false), - EndTime = table.Column(type: "datetime2", maxLength: 10, nullable: false), + StartTime = table.Column(type: "datetime2", maxLength: 8, nullable: false), + EndTime = table.Column(type: "datetime2", maxLength: 8, nullable: false), TotalHours = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - Reason = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Reason = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), ApprovedById = table.Column(type: "uniqueidentifier", nullable: true), ApprovedDate = table.Column(type: "datetime2", nullable: true), - RejectionReason = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + RejectionReason = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), Rate = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), Amount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), @@ -6803,18 +6803,18 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Excerpt = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false), - Content = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), - ImageUrl = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Excerpt = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + Content = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: false), + ImageUrl = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: true), PublishDate = table.Column(type: "datetime2", nullable: false), ExpiryDate = table.Column(type: "datetime2", nullable: true), IsPinned = table.Column(type: "bit", nullable: false), ViewCount = table.Column(type: "int", nullable: false, defaultValue: 0), - Departments = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Attachments = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Departments = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Attachments = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6845,7 +6845,7 @@ namespace Erp.Platform.Migrations Score = table.Column(type: "int", nullable: true), IssueDate = table.Column(type: "datetime2", nullable: false), ExpiryDate = table.Column(type: "datetime2", nullable: true), - CertificateUrl = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: true), + CertificateUrl = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6880,9 +6880,9 @@ namespace Erp.Platform.Migrations CategoryId = table.Column(type: "uniqueidentifier", nullable: false), TypeId = table.Column(type: "uniqueidentifier", nullable: false), Date = table.Column(type: "datetime2", nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Place = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Place = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), ParticipantsCount = table.Column(type: "int", nullable: false), @@ -6925,15 +6925,15 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - ResourceName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ResourceName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), - Purpose = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false), + Purpose = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), Participants = table.Column(type: "int", nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -6960,7 +6960,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: true), - Content = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + Content = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: false), LikeCount = table.Column(type: "int", nullable: false, defaultValue: 0), IsLiked = table.Column(type: "bit", nullable: false, defaultValue: false), IsOwnPost = table.Column(type: "bit", nullable: false, defaultValue: false), @@ -6989,18 +6989,18 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - CompanyName = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), - Email = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + CompanyName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - Purpose = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), + Purpose = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), VisitDate = table.Column(type: "datetime2", nullable: false), CheckIn = table.Column(type: "datetime2", nullable: true), CheckOut = table.Column(type: "datetime2", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: true), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - BadgeNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Photo = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: true), + BadgeNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Photo = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7026,15 +7026,15 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - RequestNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - RequestTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + RequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RequestTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), DepartmentId = table.Column(type: "uniqueidentifier", nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), RequestDate = table.Column(type: "datetime2", nullable: false), RequiredDate = table.Column(type: "datetime2", nullable: true), Priority = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7070,18 +7070,18 @@ namespace Erp.Platform.Migrations name: "Str_T_Warehouse", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), - WarehouseTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WarehouseTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Country = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), City = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Township = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - PostalCode = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + PostalCode = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), IsMainWarehouse = table.Column(type: "bit", nullable: false, defaultValue: false), Capacity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), @@ -7122,7 +7122,7 @@ namespace Erp.Platform.Migrations EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7176,14 +7176,14 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WorkorderNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - WorkcenterId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + WorkorderNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WorkcenterId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), PlanId = table.Column(type: "uniqueidentifier", nullable: true), PlanWizardId = table.Column(type: "uniqueidentifier", nullable: true), - WorkorderTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Priority = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Subject = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + WorkorderTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Subject = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), ScheduledStart = table.Column(type: "datetime2", nullable: true), ScheduledEnd = table.Column(type: "datetime2", nullable: true), @@ -7191,9 +7191,9 @@ namespace Erp.Platform.Migrations ActualStart = table.Column(type: "datetime2", nullable: true), ActualEnd = table.Column(type: "datetime2", nullable: true), ActualCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - WorkorderStatusId = table.Column(type: "nvarchar(50)", nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + WorkorderStatusId = table.Column(type: "nvarchar(64)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7296,7 +7296,7 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), BomId = table.Column(type: "uniqueidentifier", nullable: false), OperationId = table.Column(type: "uniqueidentifier", nullable: false), - WorkcenterId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + WorkcenterId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Sequence = table.Column(type: "int", nullable: false), SetupTime = table.Column(type: "int", nullable: false, defaultValue: 0), RunTime = table.Column(type: "int", nullable: false, defaultValue: 0), @@ -7346,12 +7346,12 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WorkorderNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WorkorderNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), ProductionOrderId = table.Column(type: "uniqueidentifier", nullable: false), OperationId = table.Column(type: "uniqueidentifier", nullable: false), MaterialId = table.Column(type: "uniqueidentifier", nullable: false), - WorkcenterId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WorkcenterId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), Sequence = table.Column(type: "int", nullable: false, defaultValue: 1), PlannedStartDate = table.Column(type: "datetime2", nullable: false), PlannedEndDate = table.Column(type: "datetime2", nullable: false), @@ -7415,8 +7415,8 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), ResponseId = table.Column(type: "uniqueidentifier", nullable: false), QuestionId = table.Column(type: "uniqueidentifier", nullable: false), - QuestionType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Value = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), + QuestionType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7450,7 +7450,7 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), EventId = table.Column(type: "uniqueidentifier", nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), - Content = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Content = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Likes = table.Column(type: "int", nullable: false, defaultValue: 0), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -7478,7 +7478,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), EventId = table.Column(type: "uniqueidentifier", nullable: false), - Url = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Url = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7506,7 +7506,7 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), SocialPostId = table.Column(type: "uniqueidentifier", nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: true), - Content = table.Column(type: "nvarchar(max)", maxLength: 8000, nullable: false), + Content = table.Column(type: "nvarchar(max)", maxLength: 8192, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7604,7 +7604,7 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), SocialPostId = table.Column(type: "uniqueidentifier", nullable: false), Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Urls = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Urls = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), PollQuestion = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), PollTotalVotes = table.Column(type: "int", nullable: true), PollEndsAt = table.Column(type: "datetime2", nullable: true), @@ -7634,24 +7634,24 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - QuotationNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + QuotationNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), RequestId = table.Column(type: "uniqueidentifier", nullable: false), - RequestTitle = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - RequestTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + RequestTitle = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + RequestTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), SupplierId = table.Column(type: "uniqueidentifier", nullable: false), QuotationDate = table.Column(type: "datetime2", nullable: false), ValidUntil = table.Column(type: "datetime2", nullable: false), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TotalAmount = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - PaymentTermId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - DeliveryTermId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), + PaymentTermId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DeliveryTermId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), DeliveryTime = table.Column(type: "int", nullable: true, defaultValue: 0), EvaluationScore = table.Column(type: "int", nullable: true, defaultValue: 0), - EvaluationComments = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - EvaluationNotes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - SubmittedBy = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + EvaluationComments = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + EvaluationNotes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + SubmittedBy = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), SubmittedAt = table.Column(type: "datetime2", nullable: true), EmployeeId = table.Column(type: "uniqueidentifier", nullable: true), EvaluatedAt = table.Column(type: "datetime2", nullable: true), @@ -7727,8 +7727,8 @@ namespace Erp.Platform.Migrations Quantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), UomId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), EstimatedPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Specification = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Justification = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Specification = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Justification = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), IsUrgent = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -7765,13 +7765,13 @@ namespace Erp.Platform.Migrations name: "Str_T_Zone", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WarehouseId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - ZoneTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + WarehouseId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ZoneTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Temperature = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), Humidity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), @@ -7809,7 +7809,7 @@ namespace Erp.Platform.Migrations WorkorderId = table.Column(type: "uniqueidentifier", nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), Duration = table.Column(type: "int", nullable: false, defaultValue: 0), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -7905,13 +7905,13 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - OrderNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + OrderNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), SupplierId = table.Column(type: "uniqueidentifier", nullable: false), OrderDate = table.Column(type: "datetime2", nullable: false), DeliveryDate = table.Column(type: "datetime2", nullable: true), - PaymentTermId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Terms = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Notes = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + PaymentTermId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Terms = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Notes = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), RequestId = table.Column(type: "uniqueidentifier", nullable: true), QuotationId = table.Column(type: "uniqueidentifier", nullable: true), Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), @@ -7970,7 +7970,7 @@ namespace Erp.Platform.Migrations UnitPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), TotalPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), LeadTime = table.Column(type: "int", nullable: true, defaultValue: 0), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -8006,14 +8006,14 @@ namespace Erp.Platform.Migrations name: "Str_T_Location", columns: table => new { - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WarehouseId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - ZoneId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - LocationTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + WarehouseId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ZoneId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Capacity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), CurrentStock = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), Kind = table.Column(type: "int", nullable: false), @@ -8071,7 +8071,7 @@ namespace Erp.Platform.Migrations ReceivedQuantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), DeliveredQuantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), RemainingQuantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -8110,14 +8110,14 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), MovementId = table.Column(type: "uniqueidentifier", nullable: false), - WarehouseId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - ZoneId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - LocationId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WarehouseId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ZoneId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), MaterialId = table.Column(type: "uniqueidentifier", nullable: false), Quantity = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), UomId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LotNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + LotNumber = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -8174,10 +8174,10 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), ProjectId = table.Column(type: "uniqueidentifier", nullable: false), - CategoryId = table.Column(type: "nvarchar(50)", nullable: false), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + CategoryId = table.Column(type: "nvarchar(64)", nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), Sequence = table.Column(type: "int", nullable: false, defaultValue: 1), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), @@ -8186,10 +8186,10 @@ namespace Erp.Platform.Migrations Budget = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), ActualCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), Progress = table.Column(type: "int", nullable: false, defaultValue: 0), - Risks = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Risks = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), - RiskId = table.Column(type: "nvarchar(50)", nullable: true), + RiskId = table.Column(type: "nvarchar(64)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -8226,12 +8226,12 @@ namespace Erp.Platform.Migrations { Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - ProjectTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Priority = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + ProjectTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), ManagerId = table.Column(type: "uniqueidentifier", nullable: true), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), @@ -8240,11 +8240,11 @@ namespace Erp.Platform.Migrations CustomerId = table.Column(type: "uniqueidentifier", nullable: true), Budget = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), ActualCost = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m), - Currency = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), Progress = table.Column(type: "int", nullable: false, defaultValue: 0), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), ProjectPhaseId = table.Column(type: "uniqueidentifier", nullable: true), - TaskTypeId = table.Column(type: "nvarchar(50)", nullable: true), + TaskTypeId = table.Column(type: "nvarchar(64)", nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -8297,7 +8297,7 @@ namespace Erp.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), ProjectId = table.Column(type: "uniqueidentifier", nullable: false), - RiskId = table.Column(type: "nvarchar(50)", nullable: false), + RiskId = table.Column(type: "nvarchar(64)", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -8331,11 +8331,11 @@ namespace Erp.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), ProjectId = table.Column(type: "uniqueidentifier", nullable: false), PhaseId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - TaskTypeId = table.Column(type: "nvarchar(50)", nullable: true), - Priority = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + TaskTypeId = table.Column(type: "nvarchar(64)", nullable: true), + Priority = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), @@ -8431,13 +8431,13 @@ namespace Erp.Platform.Migrations EmployeeId = table.Column(type: "uniqueidentifier", nullable: false), TaskId = table.Column(type: "uniqueidentifier", nullable: false), Date = table.Column(type: "datetime2", nullable: false), - WorkedTypeId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WorkedTypeId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), HoursWorked = table.Column(type: "int", nullable: false, defaultValue: 0), Progress = table.Column(type: "int", nullable: false, defaultValue: 0), - StatusId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - Challenges = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - NextSteps = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + StatusId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Challenges = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + NextSteps = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), diff --git a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index 30a61867..51b9afe4 100644 --- a/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Erp.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -53,8 +53,8 @@ namespace Erp.Platform.Migrations b.Property("DisplayName") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -118,8 +118,8 @@ namespace Erp.Platform.Migrations b.Property("Key") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -131,8 +131,8 @@ namespace Erp.Platform.Migrations b.Property("ResourceName") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -176,8 +176,8 @@ namespace Erp.Platform.Migrations .HasColumnName("IsDeleted"); b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -188,13 +188,13 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -212,17 +212,17 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Attachment") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("AttachmentParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("AwsMessageId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -242,8 +242,8 @@ namespace Erp.Platform.Migrations b.Property("From") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -260,12 +260,12 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("MailParameter") - .HasMaxLength(8000) + .HasMaxLength(8192) .HasColumnType("nvarchar(max)"); b.Property("RelatedRecordId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SendStatus") .HasColumnType("bit"); @@ -274,20 +274,20 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TableParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TemplateId") .HasColumnType("uniqueidentifier"); b.Property("To") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -304,8 +304,8 @@ namespace Erp.Platform.Migrations b.Property("AwsMessageId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -345,8 +345,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("MailAddress") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ResponseDescription") .HasColumnType("nvarchar(max)"); @@ -367,32 +367,32 @@ namespace Erp.Platform.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Caption") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ColumnName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Css") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DataFormat") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DataType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("FooterCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("HeaderCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsHidden") .HasColumnType("bit"); @@ -404,13 +404,13 @@ namespace Erp.Platform.Migrations .HasColumnType("smallint"); b.Property("SubTotal") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TableName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Width") .HasColumnType("int"); @@ -448,8 +448,8 @@ namespace Erp.Platform.Migrations b.Property("Identifier") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -473,21 +473,21 @@ namespace Erp.Platform.Migrations b.Property("Message") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("NotificationChannel") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("NotificationRuleId") .HasColumnType("uniqueidentifier"); b.Property("NotificationType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ReadTime") .HasColumnType("datetime2"); @@ -510,8 +510,8 @@ namespace Erp.Platform.Migrations b.Property("Channel") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -554,17 +554,17 @@ namespace Erp.Platform.Migrations b.Property("NotificationType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("RecipientId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("RecipientType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -634,8 +634,8 @@ namespace Erp.Platform.Migrations b.Property("ActivityType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -654,8 +654,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .HasColumnType("int"); @@ -667,8 +667,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("FollowUpActivity") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("FollowUpDate") .HasColumnType("datetime2"); @@ -688,23 +688,23 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("NextSteps") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("OpportunityId") .HasColumnType("uniqueidentifier"); b.Property("Outcome") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("StartTime") .HasColumnType("datetime2"); b.Property("Subject") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -749,18 +749,18 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Attachments") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Content") .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -779,23 +779,23 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Departments") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); b.Property("Excerpt") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("ExpiryDate") .HasColumnType("datetime2"); b.Property("ImageUrl") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -823,8 +823,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ViewCount") .ValueGeneratedOnAdd() @@ -890,8 +890,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -932,8 +932,8 @@ namespace Erp.Platform.Migrations b.Property("EmployeeIds") .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -980,12 +980,12 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AfterSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("BeforeSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -997,12 +997,12 @@ namespace Erp.Platform.Migrations b.Property("Cron") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DataSourceCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -1033,8 +1033,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Options") .HasColumnType("text"); @@ -1057,17 +1057,17 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(20)"); b.Property("Category") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Color") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -1078,8 +1078,8 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("Criteria") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -1090,8 +1090,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Icon") .HasMaxLength(10) @@ -1125,8 +1125,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("Rarity") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -1484,8 +1484,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("ReadTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Slug") .IsRequired() @@ -1537,12 +1537,12 @@ namespace Erp.Platform.Migrations b.Property("BomTypeId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -1594,8 +1594,8 @@ namespace Erp.Platform.Migrations b.Property("Version") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -1801,8 +1801,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0); b.Property("WorkcenterId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -1818,8 +1818,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.BomType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -1838,8 +1838,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -1862,8 +1862,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2026,8 +2026,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2039,8 +2039,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -2051,8 +2051,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2075,8 +2075,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2090,8 +2090,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Category", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2110,8 +2110,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2134,8 +2134,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2152,8 +2152,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("CertificateUrl") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2219,8 +2219,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AccountNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Amount") .ValueGeneratedOnAdd() @@ -2229,8 +2229,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("BankName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("BankingDate") .HasColumnType("datetime2"); @@ -2239,13 +2239,13 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("BranchName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CheckNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CollectionDate") .HasColumnType("datetime2"); @@ -2260,8 +2260,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentAccountId") .HasColumnType("uniqueidentifier"); @@ -2275,15 +2275,15 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("DrawerName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("DueDate") .HasColumnType("datetime2"); b.Property("EndorsedTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -2303,17 +2303,17 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PayeeName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2321,8 +2321,8 @@ namespace Erp.Platform.Migrations b.Property("TypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -2338,8 +2338,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CheckStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2358,8 +2358,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2382,8 +2382,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2397,8 +2397,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CheckType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -2417,8 +2417,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -2441,8 +2441,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2620,12 +2620,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2736,8 +2736,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .HasColumnType("int"); @@ -2761,8 +2761,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ParticipantCount") .HasColumnType("int"); @@ -2777,16 +2777,16 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(max)"); b.Property("Subject") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TeacherId") .HasColumnType("uniqueidentifier"); b.Property("TeacherName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2853,8 +2853,8 @@ namespace Erp.Platform.Migrations b.Property("StudentName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2917,8 +2917,8 @@ namespace Erp.Platform.Migrations b.Property("Message") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("MessageType") .HasMaxLength(64) @@ -2928,16 +2928,16 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("RecipientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SenderId") .HasColumnType("uniqueidentifier"); b.Property("SenderName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SessionId") .HasColumnType("uniqueidentifier"); @@ -2969,8 +2969,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("ConnectionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -3039,8 +3039,8 @@ namespace Erp.Platform.Migrations b.Property("UserName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -3095,27 +3095,27 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("OpportunityId") .HasColumnType("uniqueidentifier"); b.Property("Strengths") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Weaknesses") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Website") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -3130,8 +3130,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("BankJson") .HasColumnType("text"); @@ -3153,8 +3153,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Email") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -3171,8 +3171,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Location") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("MapJson") .HasColumnType("text"); @@ -3309,8 +3309,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CostCenterType") .HasMaxLength(64) @@ -3341,8 +3341,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("FiscalYear") .HasMaxLength(10) @@ -3369,8 +3369,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ParentCostCenterId") .HasColumnType("uniqueidentifier"); @@ -3549,8 +3549,8 @@ namespace Erp.Platform.Migrations b.Property("EntityName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsActive") .HasColumnType("bit"); @@ -3576,13 +3576,13 @@ namespace Erp.Platform.Migrations b.Property("OperationType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Path") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -3616,17 +3616,17 @@ namespace Erp.Platform.Migrations b.Property("EntityName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ErrorMessage") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("FileName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -3642,8 +3642,8 @@ namespace Erp.Platform.Migrations b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -3659,8 +3659,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Currency", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -3734,8 +3734,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -3765,8 +3765,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -3789,14 +3789,14 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PartnerId") .HasColumnType("uniqueidentifier"); b.Property("PaymentTermId") - .HasColumnType("nvarchar(100)"); + .HasColumnType("nvarchar(128)"); b.Property("Risk") .HasMaxLength(10) @@ -3848,12 +3848,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Dependencies") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .HasColumnType("bit"); @@ -3874,12 +3874,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Props") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -3905,8 +3905,8 @@ namespace Erp.Platform.Migrations b.Property("DataSourceCode") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -3990,18 +3990,18 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DisplayName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EndpointStatus") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsActive") .HasColumnType("bit"); @@ -4028,26 +4028,26 @@ namespace Erp.Platform.Migrations b.Property("Menu") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("MigrationId") .HasColumnType("uniqueidentifier"); b.Property("MigrationStatus") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TableName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4084,8 +4084,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DisplayOrder") .HasColumnType("int"); @@ -4118,13 +4118,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -4136,8 +4136,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CustomerSegment", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -4156,8 +4156,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4180,8 +4180,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4195,8 +4195,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.CustomerType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -4215,8 +4215,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4239,8 +4239,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4258,8 +4258,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ConnectionString") .HasMaxLength(256) @@ -4306,8 +4306,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.DeliveryTerm", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -4326,8 +4326,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4350,8 +4350,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -4409,8 +4409,8 @@ namespace Erp.Platform.Migrations b.Property("Message") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Name") .IsRequired() @@ -4478,8 +4478,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4505,8 +4505,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ParentDepartmentId") .HasColumnType("uniqueidentifier"); @@ -4730,8 +4730,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("DisplayName") .HasMaxLength(512) @@ -4788,7 +4788,7 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.EducationStatus", b => { b.Property("Id") - .HasMaxLength(50) + .HasMaxLength(64) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") @@ -4823,8 +4823,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Order") .HasColumnType("smallint"); @@ -4844,16 +4844,16 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address1") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Address2") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Avatar") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("BadgeId") .HasColumnType("uniqueidentifier"); @@ -4874,8 +4874,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Country") .HasMaxLength(8) @@ -4910,20 +4910,20 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("Email") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EmergencyContactName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("EmergencyContactPhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("EmergencyContactRelationship") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EmployeeStatus") .HasMaxLength(20) @@ -4940,8 +4940,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("IbanNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -4978,24 +4978,24 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("NationalId") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasMaxLength(11) + .HasColumnType("nvarchar(11)"); b.Property("PayrollGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("PostalCode") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5009,8 +5009,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("WorkLocation") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -5066,8 +5066,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5106,8 +5106,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -5131,15 +5131,15 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ParticipantsCount") .HasColumnType("int"); b.Property("Place") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Status") .HasMaxLength(20) @@ -5223,8 +5223,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Content") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5321,8 +5321,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -5397,8 +5397,8 @@ namespace Erp.Platform.Migrations b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5422,8 +5422,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -5443,16 +5443,16 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("RejectionReason") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("RequestDate") .HasColumnType("datetime2"); @@ -5484,20 +5484,20 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("AssignedTo") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ClosedAt") .HasColumnType("datetime2"); b.Property("ClosedBy") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5516,19 +5516,19 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EstimatedRepairTime") .HasColumnType("int"); b.Property("FaultStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("FaultTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("FollowUpRequired") .HasColumnType("bit"); @@ -5551,20 +5551,20 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Location") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Priority") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ResolutionNotes") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("Severity") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() @@ -5576,16 +5576,16 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Title") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WorkorderId") - .HasMaxLength(100) + .HasMaxLength(128) .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -5602,8 +5602,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.FaultStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5622,8 +5622,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -5646,8 +5646,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5661,8 +5661,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.FaultType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -5681,8 +5681,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -5705,8 +5705,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5726,12 +5726,12 @@ namespace Erp.Platform.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Group") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("System") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5747,8 +5747,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(512)"); b.Property("Weight") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -5848,12 +5848,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5913,12 +5913,12 @@ namespace Erp.Platform.Migrations b.Property("LocationId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("LotNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("MaterialId") .HasColumnType("uniqueidentifier"); @@ -5939,8 +5939,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("SerialNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -5953,13 +5953,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -5986,8 +5986,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentAccountId") .HasColumnType("uniqueidentifier"); @@ -6014,12 +6014,12 @@ namespace Erp.Platform.Migrations b.Property("InvoiceNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("InvoiceTypeId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -6036,8 +6036,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PaidAmount") .ValueGeneratedOnAdd() @@ -6046,7 +6046,7 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("PaymentStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("RemainingAmount") .ValueGeneratedOnAdd() @@ -6056,8 +6056,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Subtotal") .ValueGeneratedOnAdd() @@ -6119,8 +6119,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -6213,8 +6213,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.InvoiceStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6233,8 +6233,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -6257,8 +6257,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6272,8 +6272,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.InvoiceType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6292,8 +6292,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -6316,8 +6316,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6393,8 +6393,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6421,8 +6421,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -6444,8 +6444,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Level") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("MaxSalary") .HasPrecision(18, 2) @@ -6486,8 +6486,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6506,12 +6506,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("FaxNumber") .HasMaxLength(20) @@ -6537,23 +6537,23 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TaxNumber") .HasColumnType("bigint"); b.Property("TaxOffice") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6579,8 +6579,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("Attachments") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -6623,16 +6623,16 @@ namespace Erp.Platform.Migrations b.Property("LeaveType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Reason") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("RejectionReason") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("StartDate") .HasColumnType("datetime2"); @@ -6717,8 +6717,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6788,15 +6788,15 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Order") .HasColumnType("int"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -6861,6 +6861,7 @@ namespace Erp.Platform.Migrations .HasColumnType("text"); b.Property("CultureName") + .IsRequired() .HasMaxLength(10) .HasColumnType("nvarchar(10)"); @@ -6871,8 +6872,8 @@ namespace Erp.Platform.Migrations .HasColumnType("text"); b.Property("DataSourceCode") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("DataSourceJson") .HasColumnType("text"); @@ -6983,8 +6984,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("KeyFieldName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -7220,12 +7221,12 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("CaptionName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ColumnCssClass") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ColumnCssValue") .HasMaxLength(256) @@ -7252,6 +7253,7 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("CultureName") + .IsRequired() .HasMaxLength(10) .HasColumnType("nvarchar(10)"); @@ -7271,12 +7273,12 @@ namespace Erp.Platform.Migrations b.Property("FieldName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Format") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("GroupSummaryJson") .HasColumnType("text"); @@ -7499,8 +7501,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Location", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Capacity") .ValueGeneratedOnAdd() @@ -7510,8 +7512,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7536,8 +7538,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7563,13 +7565,13 @@ namespace Erp.Platform.Migrations b.Property("LocationTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -7580,13 +7582,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -7604,13 +7606,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.LocationType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7629,8 +7631,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7653,8 +7655,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -7700,13 +7702,13 @@ namespace Erp.Platform.Migrations b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7725,8 +7727,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .HasColumnType("bit"); @@ -7747,8 +7749,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -7765,13 +7767,13 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Barcode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CostPrice") .ValueGeneratedOnAdd() @@ -7801,8 +7803,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7831,8 +7833,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SalesPrice") .ValueGeneratedOnAdd() @@ -7851,8 +7853,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("TrackingType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("UomId") .HasColumnType("nvarchar(64)"); @@ -7875,8 +7877,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -7895,8 +7897,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -7919,8 +7921,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ParentGroupId") .HasColumnType("uniqueidentifier"); @@ -7981,13 +7983,13 @@ namespace Erp.Platform.Migrations b.Property("SpecificationName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SpecificationValue") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8012,8 +8014,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8032,8 +8034,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8056,8 +8058,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8110,8 +8112,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Materials") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8169,13 +8171,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8183,8 +8185,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -8228,16 +8230,16 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Order") .HasColumnType("smallint"); b.Property("Status") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8255,8 +8257,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8271,8 +8273,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("CultureName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -8284,16 +8286,16 @@ namespace Erp.Platform.Migrations b.Property("DisplayName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ElementId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Icon") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -8316,8 +8318,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("ParentCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredPermissionName") .HasMaxLength(128) @@ -8328,12 +8330,12 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(256)"); b.Property("Target") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Url") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) @@ -8366,8 +8368,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -8391,24 +8393,24 @@ namespace Erp.Platform.Migrations b.Property("MovementNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("MovementType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PartnerId") .HasColumnType("uniqueidentifier"); b.Property("ReferenceDocument") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("ReferenceTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8445,8 +8447,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -8464,12 +8466,12 @@ namespace Erp.Platform.Migrations b.Property("LocationId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("LotNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("MaterialId") .HasColumnType("uniqueidentifier"); @@ -8494,13 +8496,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -8522,8 +8524,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.MovementType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8542,8 +8544,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8566,8 +8568,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8585,8 +8587,8 @@ namespace Erp.Platform.Migrations b.Property("Content") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8606,13 +8608,13 @@ namespace Erp.Platform.Migrations b.Property("EntityId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("EntityName") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("FilesJson") .HasColumnType("nvarchar(max)"); @@ -8642,8 +8644,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -8687,8 +8689,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8706,8 +8708,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8726,12 +8728,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Instructions") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8766,8 +8768,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("OperationTypeId") .HasColumnType("uniqueidentifier"); @@ -8799,8 +8801,8 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -8833,8 +8835,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8857,8 +8859,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -8884,8 +8886,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -8909,8 +8911,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -8933,8 +8935,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("QualityCheckRequired") .ValueGeneratedOnAdd() @@ -8990,8 +8992,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -9035,13 +9037,13 @@ namespace Erp.Platform.Migrations b.Property("Stage") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TeamCode") .HasMaxLength(95) @@ -9053,8 +9055,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -9161,8 +9163,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("PaymentDataJson") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("PaymentMethodId") .HasColumnType("uniqueidentifier"); @@ -9271,8 +9273,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.OrderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -9291,8 +9293,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -9315,8 +9317,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -9365,7 +9367,7 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("EndTime") - .HasMaxLength(10) + .HasMaxLength(8) .HasColumnType("datetime2"); b.Property("IsDeleted") @@ -9387,15 +9389,15 @@ namespace Erp.Platform.Migrations .HasColumnType("decimal(18,2)"); b.Property("Reason") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("RejectionReason") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("StartTime") - .HasMaxLength(10) + .HasMaxLength(8) .HasColumnType("datetime2"); b.Property("Status") @@ -9482,10 +9484,10 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("CustomerSegmentId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("CustomerTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -9559,8 +9561,8 @@ namespace Erp.Platform.Migrations b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PerformanceMetricsJson") .HasColumnType("text"); @@ -9585,10 +9587,10 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("SupplierTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("SupplyCardTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TaxNumber") .HasColumnType("bigint"); @@ -9653,8 +9655,8 @@ namespace Erp.Platform.Migrations b.Property("AccountNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("AccountOwner") .IsRequired() @@ -9767,8 +9769,8 @@ namespace Erp.Platform.Migrations b.Property("Certificate") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -9799,8 +9801,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("Issuer") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -9968,8 +9970,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.PaymentStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -9988,8 +9990,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10012,8 +10014,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10027,8 +10029,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.PaymentTerm", b => { b.Property("Id") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10048,8 +10050,8 @@ namespace Erp.Platform.Migrations b.Property("Description") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10072,8 +10074,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10223,8 +10225,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PayrollItemId") .HasColumnType("uniqueidentifier"); @@ -10270,8 +10272,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EndDate") .HasColumnType("datetime2"); @@ -10292,19 +10294,19 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TargetEmployees") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("TemplateId") .HasColumnType("uniqueidentifier"); @@ -10329,8 +10331,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10349,8 +10351,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EstimatedDuration") .HasColumnType("int"); @@ -10360,13 +10362,13 @@ namespace Erp.Platform.Migrations b.Property("FrequencyUnit") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Instructions") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10395,16 +10397,16 @@ namespace Erp.Platform.Migrations b.Property("PlanType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Priority") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredSkillsJson") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10412,8 +10414,8 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -10444,8 +10446,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -10569,12 +10571,12 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("ImageUrl") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -10650,12 +10652,13 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("Currency") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CustomerRequirement") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -10681,13 +10684,13 @@ namespace Erp.Platform.Migrations b.Property("OrderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("OrderTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PlannedCost") .ValueGeneratedOnAdd() @@ -10709,8 +10712,8 @@ namespace Erp.Platform.Migrations b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredQuantity") .ValueGeneratedOnAdd() @@ -10726,8 +10729,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10841,8 +10844,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ProductionOrderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10861,8 +10864,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10885,8 +10888,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -10900,8 +10903,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ProductionOrderType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -10920,8 +10923,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -10944,8 +10947,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11057,8 +11060,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11066,13 +11069,13 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WorkorderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -11126,12 +11129,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11167,8 +11170,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11179,8 +11182,9 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("Currency") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CustomerId") .HasColumnType("uniqueidentifier"); @@ -11194,8 +11198,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EndDate") .HasColumnType("datetime2"); @@ -11224,13 +11228,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11242,19 +11246,19 @@ namespace Erp.Platform.Migrations b.Property("ProjectTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TaskTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11302,12 +11306,12 @@ namespace Erp.Platform.Migrations b.Property("CategoryId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11326,8 +11330,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EndDate") .HasColumnType("datetime2"); @@ -11353,8 +11357,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11365,11 +11369,11 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("RiskId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("Risks") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Sequence") .ValueGeneratedOnAdd() @@ -11381,8 +11385,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11441,7 +11445,7 @@ namespace Erp.Platform.Migrations b.Property("RiskId") .IsRequired() - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11478,8 +11482,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -11508,16 +11512,16 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("PhaseId") .HasColumnType("uniqueidentifier"); b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11532,11 +11536,11 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TaskTypeId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11563,8 +11567,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Challenges") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11586,8 +11590,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -11612,8 +11616,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("NextSteps") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Progress") .ValueGeneratedOnAdd() @@ -11622,8 +11626,8 @@ namespace Erp.Platform.Migrations b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); @@ -11634,8 +11638,8 @@ namespace Erp.Platform.Migrations b.Property("WorkedTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -11715,8 +11719,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Address") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -11735,8 +11739,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -11754,16 +11758,16 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -11824,21 +11828,21 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("OrderDate") .HasColumnType("datetime2"); b.Property("OrderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("QuotationId") .HasColumnType("uniqueidentifier"); @@ -11871,8 +11875,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Terms") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("TotalAmount") .ValueGeneratedOnAdd() @@ -11921,8 +11925,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12001,8 +12005,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12021,8 +12025,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -12051,8 +12055,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Priority") .ValueGeneratedOnAdd() @@ -12061,16 +12065,16 @@ namespace Erp.Platform.Migrations b.Property("Strategy") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TargetLocationId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TargetZoneId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12078,8 +12082,8 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -12093,8 +12097,8 @@ namespace Erp.Platform.Migrations b.Property("ConditionType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12139,8 +12143,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Value") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -12155,12 +12159,12 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Content") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CorrectAnswer") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12183,8 +12187,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("Explanation") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12205,8 +12209,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("MediaUrl") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Points") .ValueGeneratedOnAdd() @@ -12218,8 +12222,8 @@ namespace Erp.Platform.Migrations b.Property("QuestionType") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12232,8 +12236,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -12293,8 +12297,8 @@ namespace Erp.Platform.Migrations .HasColumnName("TenantId"); b.Property("Text") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -12325,8 +12329,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12344,12 +12348,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Tags") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12366,8 +12370,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Color") - .HasMaxLength(7) - .HasColumnType("nvarchar(7)"); + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12386,8 +12390,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12405,8 +12409,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12437,8 +12441,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -12450,8 +12454,8 @@ namespace Erp.Platform.Migrations b.Property("DeliveryTermId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DeliveryTime") .ValueGeneratedOnAdd() @@ -12465,12 +12469,12 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("EvaluationComments") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EvaluationNotes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EvaluationScore") .ValueGeneratedOnAdd() @@ -12492,49 +12496,49 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PaymentMethodId") .HasColumnType("nvarchar(450)"); b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("QuotationDate") .HasColumnType("datetime2"); b.Property("QuotationNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequestId") .HasColumnType("uniqueidentifier"); b.Property("RequestTitle") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("RequestTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("StatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("SubmittedAt") .HasColumnType("datetime2"); b.Property("SubmittedBy") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SupplierId") .HasColumnType("uniqueidentifier"); @@ -12593,8 +12597,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -12656,8 +12660,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.QuotationStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12676,8 +12680,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -12700,8 +12704,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12715,8 +12719,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ReferenceType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -12735,8 +12739,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -12759,13 +12763,13 @@ namespace Erp.Platform.Migrations b.Property("MovementTypeName") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12815,15 +12819,15 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RegistrationTypeId") .HasColumnType("uniqueidentifier"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12878,12 +12882,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -12918,8 +12922,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasMaxLength(64) @@ -12993,8 +12997,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("TemplateId") .HasColumnType("uniqueidentifier"); @@ -13029,8 +13033,8 @@ namespace Erp.Platform.Migrations .HasColumnName("CreatorId"); b.Property("DefaultValue") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -13041,8 +13045,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -13060,12 +13064,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Placeholder") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Required") .HasColumnType("bit"); @@ -13113,8 +13117,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("HtmlContent") .IsRequired() @@ -13140,8 +13144,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(256)"); b.Property("Tags") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13179,8 +13183,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -13209,13 +13213,13 @@ namespace Erp.Platform.Migrations b.Property("RequestNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequestTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("RequiredDate") .HasColumnType("datetime2"); @@ -13277,8 +13281,8 @@ namespace Erp.Platform.Migrations .HasColumnType("bit"); b.Property("Justification") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -13301,8 +13305,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Specification") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13327,8 +13331,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.RequestType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13347,8 +13351,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -13371,8 +13375,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13425,29 +13429,29 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Participants") .HasColumnType("int"); b.Property("Purpose") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("ResourceName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13455,8 +13459,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -13468,8 +13472,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Risk", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13488,8 +13492,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -13512,8 +13516,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13623,8 +13627,8 @@ namespace Erp.Platform.Migrations b.Property("DeliveryTermId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -13659,31 +13663,31 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("OrderDate") .HasColumnType("datetime2"); b.Property("OrderNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("PaymentTermId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("RequestedDeliveryDate") .HasColumnType("datetime2"); b.Property("SalesOrderStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("SpecialInstructions") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Status") .IsRequired() @@ -13759,8 +13763,8 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -13792,8 +13796,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Quantity") .ValueGeneratedOnAdd() @@ -13805,8 +13809,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Status") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TaxAmount") .ValueGeneratedOnAdd() @@ -13855,8 +13859,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.SalesOrderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13875,8 +13879,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -13899,8 +13903,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13917,8 +13921,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -13952,12 +13956,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -13993,8 +13997,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("EndTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("Friday") .HasColumnType("bit"); @@ -14044,8 +14048,8 @@ namespace Erp.Platform.Migrations .HasColumnType("bit"); b.Property("StartTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("Status") .HasMaxLength(20) @@ -14103,8 +14107,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("EndTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -14133,8 +14137,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("StartTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -14321,8 +14325,8 @@ namespace Erp.Platform.Migrations b.Property("Route") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -14511,7 +14515,7 @@ namespace Erp.Platform.Migrations b.Property("Content") .IsRequired() - .HasMaxLength(8000) + .HasMaxLength(8192) .HasColumnType("nvarchar(max)"); b.Property("CreationTime") @@ -14748,8 +14752,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(64)"); b.PrimitiveCollection("Urls") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.HasKey("Id"); @@ -14823,8 +14827,8 @@ namespace Erp.Platform.Migrations b.Property("Content") .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -14922,12 +14926,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -14941,8 +14945,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Status", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -14961,8 +14965,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -14985,8 +14989,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15000,8 +15004,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.SupplyCardType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15020,8 +15024,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15044,8 +15048,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15059,8 +15063,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.SupplyType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15079,8 +15083,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15103,8 +15107,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15140,8 +15144,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasMaxLength(2048) + .HasColumnType("nvarchar(2048)"); b.Property("IsAnonymous") .HasColumnType("bit"); @@ -15176,8 +15180,8 @@ namespace Erp.Platform.Migrations b.Property("Title") .IsRequired() - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -15224,8 +15228,8 @@ namespace Erp.Platform.Migrations b.Property("QuestionType") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ResponseId") .HasColumnType("uniqueidentifier"); @@ -15236,8 +15240,8 @@ namespace Erp.Platform.Migrations b.Property("Value") .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.HasKey("Id"); @@ -15291,8 +15295,8 @@ namespace Erp.Platform.Migrations b.Property("QuestionText") .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("SurveyId") .HasColumnType("uniqueidentifier"); @@ -15303,8 +15307,8 @@ namespace Erp.Platform.Migrations b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -15360,8 +15364,8 @@ namespace Erp.Platform.Migrations b.Property("Text") .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -15430,8 +15434,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.TaskType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15450,8 +15454,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15474,8 +15478,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15492,8 +15496,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AssessorTypes") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15512,8 +15516,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15536,8 +15540,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("QuestionGroupsJson") .HasColumnType("text"); @@ -15558,8 +15562,8 @@ namespace Erp.Platform.Migrations b.Property("Category") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15578,8 +15582,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .ValueGeneratedOnAdd() @@ -15596,8 +15600,8 @@ namespace Erp.Platform.Migrations b.Property("Instructor") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() @@ -15615,8 +15619,8 @@ namespace Erp.Platform.Migrations b.Property("Location") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("MaxParticipants") .ValueGeneratedOnAdd() @@ -15628,26 +15632,26 @@ namespace Erp.Platform.Migrations b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Thumbnail") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Title") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Type") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -15657,8 +15661,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Type", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15677,8 +15681,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -15701,8 +15705,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15878,8 +15882,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15896,8 +15900,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("AssistantDriverName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("AssistantDriverNationalId") .HasMaxLength(11) @@ -15912,8 +15916,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(20)"); b.Property("Brand") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -15932,8 +15936,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("DriverName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("DriverNationalId") .HasMaxLength(11) @@ -15970,8 +15974,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(10)"); b.Property("Status") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -15988,8 +15992,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("BadgeNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CheckIn") .HasColumnType("datetime2"); @@ -15998,8 +16002,8 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("CompanyName") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16018,8 +16022,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Email") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -16040,8 +16044,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .IsRequired() @@ -16049,12 +16053,12 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(20)"); b.Property("Photo") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Purpose") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Status") .IsRequired() @@ -16078,8 +16082,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Warehouse", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Capacity") .ValueGeneratedOnAdd() @@ -16093,8 +16097,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Country") .HasMaxLength(128) @@ -16117,8 +16121,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("District") .HasMaxLength(128) @@ -16153,12 +16157,12 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("PostalCode") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); b.Property("Security") .HasMaxLength(20) @@ -16179,8 +16183,8 @@ namespace Erp.Platform.Migrations b.Property("WarehouseTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -16194,13 +16198,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WarehouseType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16219,8 +16223,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16243,8 +16247,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16264,8 +16268,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("CarrierCompany") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16277,8 +16281,8 @@ namespace Erp.Platform.Migrations b.Property("Currency") .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("CurrentAccountId") .HasColumnType("uniqueidentifier"); @@ -16292,8 +16296,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("DeliveryAddress") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DeliveryDate") .HasColumnType("datetime2"); @@ -16327,16 +16331,16 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("ReceiverName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("ReceiverPhone") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Subtotal") .ValueGeneratedOnAdd() @@ -16361,26 +16365,26 @@ namespace Erp.Platform.Migrations .HasDefaultValue(0m); b.Property("TrackingNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WaybillDate") .HasColumnType("datetime2"); b.Property("WaybillNumber") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("WaybillStatusId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("WaybillTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -16415,8 +16419,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("DiscountAmount") .ValueGeneratedOnAdd() @@ -16508,8 +16512,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WaybillStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16528,8 +16532,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16552,8 +16556,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16567,8 +16571,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WaybillType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16587,8 +16591,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16611,8 +16615,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16644,7 +16648,7 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2") .HasColumnName("DeletionTime"); - b.Property("EndHour") + b.Property("EndTime") .HasMaxLength(8) .HasColumnType("datetime2"); @@ -16670,13 +16674,13 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Saturday") .HasColumnType("bit"); - b.Property("StartHour") + b.Property("StartTime") .HasMaxLength(8) .HasColumnType("datetime2"); @@ -16704,8 +16708,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16724,8 +16728,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -16748,8 +16752,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16763,8 +16767,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Workcenter", b => { b.Property("Id") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Capacity") .ValueGeneratedOnAdd() @@ -16773,8 +16777,8 @@ namespace Erp.Platform.Migrations b.Property("Code") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("CostPerHour") .ValueGeneratedOnAdd() @@ -16806,8 +16810,8 @@ namespace Erp.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("InstallationDate") .HasColumnType("datetime2"); @@ -16832,25 +16836,25 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Location") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Manufacturer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("Model") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("Name") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SerialNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("SetupTime") .ValueGeneratedOnAdd() @@ -16870,12 +16874,12 @@ namespace Erp.Platform.Migrations .HasColumnType("datetime2"); b.Property("WorkcenterStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("WorkcenterTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -16930,13 +16934,13 @@ namespace Erp.Platform.Migrations b.Property("SpecificationName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("SpecificationValue") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(256) + .HasColumnType("nvarchar(256)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -16948,7 +16952,7 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(64)"); b.Property("WorkcenterId") - .HasColumnType("nvarchar(100)"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -16962,8 +16966,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkcenterStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -16982,8 +16986,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17006,8 +17010,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17021,8 +17025,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkcenterType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17041,8 +17045,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17065,8 +17069,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17111,8 +17115,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("EmployeeId") .HasColumnType("uniqueidentifier"); @@ -17138,8 +17142,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("PlanId") .HasColumnType("uniqueidentifier"); @@ -17149,8 +17153,8 @@ namespace Erp.Platform.Migrations b.Property("Priority") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ScheduledEnd") .HasColumnType("datetime2"); @@ -17160,12 +17164,12 @@ namespace Erp.Platform.Migrations b.Property("Status") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Subject") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17173,20 +17177,20 @@ namespace Erp.Platform.Migrations b.Property("WorkcenterId") .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); b.Property("WorkorderNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("WorkorderStatusId") - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(64)"); b.Property("WorkorderTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -17225,8 +17229,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("Duration") .ValueGeneratedOnAdd() @@ -17335,8 +17339,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkorderStatus", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17355,8 +17359,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17379,8 +17383,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17394,8 +17398,8 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.WorkorderType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17414,8 +17418,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17438,8 +17442,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17453,13 +17457,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.Zone", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17478,8 +17482,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("Humidity") .ValueGeneratedOnAdd() @@ -17508,8 +17512,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Temperature") .ValueGeneratedOnAdd() @@ -17523,13 +17527,13 @@ namespace Erp.Platform.Migrations b.Property("WarehouseId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ZoneTypeId") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -17543,13 +17547,13 @@ namespace Erp.Platform.Migrations modelBuilder.Entity("Erp.Platform.Entities.ZoneType", b => { b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("Code") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") .HasColumnType("datetime2") @@ -17568,8 +17572,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() @@ -17592,8 +17596,8 @@ namespace Erp.Platform.Migrations b.Property("Name") .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -17889,8 +17893,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(16)"); b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") @@ -17993,8 +17997,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DisplayName") .IsRequired() @@ -18034,8 +18038,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("ReturnType") .IsRequired() @@ -18106,8 +18110,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("ExecutionCount") .HasColumnType("int"); @@ -18138,8 +18142,8 @@ namespace Erp.Platform.Migrations .HasColumnType("nvarchar(256)"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("QueryText") .IsRequired() @@ -18149,8 +18153,8 @@ namespace Erp.Platform.Migrations .HasColumnType("int"); b.Property("Tags") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); + .HasMaxLength(512) + .HasColumnType("nvarchar(512)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -18201,8 +18205,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DisplayName") .IsRequired() @@ -18230,8 +18234,8 @@ namespace Erp.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); b.Property("ProcedureBody") .IsRequired() @@ -18299,8 +18303,8 @@ namespace Erp.Platform.Migrations .HasColumnName("DeletionTime"); b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); b.Property("DisplayName") .IsRequired()