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