DbContext HasMaxLength düzenleme
This commit is contained in:
parent
ab735605a1
commit
c5ad91381c
19 changed files with 1259 additions and 1084 deletions
|
|
@ -19,7 +19,8 @@ public static class LanguagesDbContextModelCreatingExtensions
|
||||||
|
|
||||||
b.Property(a => a.CultureName).HasMaxLength(10).IsRequired();
|
b.Property(a => a.CultureName).HasMaxLength(10).IsRequired();
|
||||||
b.Property(a => a.UiCultureName).HasMaxLength(10).IsRequired();
|
b.Property(a => a.UiCultureName).HasMaxLength(10).IsRequired();
|
||||||
b.Property(a => a.DisplayName).HasMaxLength(50).IsRequired();
|
b.Property(a => a.DisplayName).HasMaxLength(64).IsRequired();
|
||||||
|
b.Property(a => a.TwoLetterISOLanguageName).HasMaxLength(2).IsRequired();
|
||||||
|
|
||||||
// Language → LanguageText (CultureName üzerinden)
|
// Language → LanguageText (CultureName üzerinden)
|
||||||
b.HasMany<LanguageText>()
|
b.HasMany<LanguageText>()
|
||||||
|
|
@ -34,8 +35,8 @@ public static class LanguagesDbContextModelCreatingExtensions
|
||||||
b.ToTable(TablePrefix.ByName(nameof(LanguageKey)), Prefix.DbSchema);
|
b.ToTable(TablePrefix.ByName(nameof(LanguageKey)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(a => a.Key).HasMaxLength(100).IsRequired();
|
b.Property(a => a.Key).HasMaxLength(128).IsRequired();
|
||||||
b.Property(a => a.ResourceName).HasMaxLength(50).IsRequired();
|
b.Property(a => a.ResourceName).HasMaxLength(64).IsRequired();
|
||||||
|
|
||||||
b.HasMany(a => a.Texts)
|
b.HasMany(a => a.Texts)
|
||||||
.WithOne(t => t.LanguageKey)
|
.WithOne(t => t.LanguageKey)
|
||||||
|
|
@ -53,9 +54,9 @@ public static class LanguagesDbContextModelCreatingExtensions
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(a => a.CultureName).HasMaxLength(10).IsRequired();
|
b.Property(a => a.CultureName).HasMaxLength(10).IsRequired();
|
||||||
b.Property(a => a.ResourceName).HasMaxLength(50);
|
b.Property(a => a.ResourceName).HasMaxLength(64);
|
||||||
b.Property(a => a.Key).HasMaxLength(100);
|
b.Property(a => a.Key).HasMaxLength(128);
|
||||||
b.Property(a => a.Value).HasMaxLength(4000).IsRequired();
|
b.Property(a => a.Value).HasMaxLength(4096).IsRequired();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,15 +17,15 @@ public static class MailQueueDbContextModelCreatingExtensions
|
||||||
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueue)), Prefix.DbSchema);
|
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueue)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.From).IsRequired().HasMaxLength(100);
|
b.Property(x => x.From).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.To).IsRequired().HasMaxLength(100);
|
b.Property(x => x.To).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.MailParameter).HasMaxLength(8000);
|
b.Property(x => x.MailParameter).HasMaxLength(8192);
|
||||||
b.Property(x => x.TableName).HasMaxLength(100);
|
b.Property(x => x.TableName).HasMaxLength(128);
|
||||||
b.Property(x => x.TableParameter).HasMaxLength(500);
|
b.Property(x => x.TableParameter).HasMaxLength(512);
|
||||||
b.Property(x => x.Attachment).HasMaxLength(100);
|
b.Property(x => x.Attachment).HasMaxLength(128);
|
||||||
b.Property(x => x.AttachmentParameter).HasMaxLength(500);
|
b.Property(x => x.AttachmentParameter).HasMaxLength(512);
|
||||||
b.Property(x => x.AwsMessageId).HasMaxLength(100);
|
b.Property(x => x.AwsMessageId).HasMaxLength(128);
|
||||||
b.Property(x => x.RelatedRecordId).HasMaxLength(100);
|
b.Property(x => x.RelatedRecordId).HasMaxLength(128);
|
||||||
|
|
||||||
// 🔗 İlişki: MailQueue ↔ MailQueueEvents (AwsMessageId)
|
// 🔗 İlişki: MailQueue ↔ MailQueueEvents (AwsMessageId)
|
||||||
b.HasMany(x => x.Events)
|
b.HasMany(x => x.Events)
|
||||||
|
|
@ -47,9 +47,9 @@ public static class MailQueueDbContextModelCreatingExtensions
|
||||||
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueueEvents)), Prefix.DbSchema);
|
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueueEvents)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.AwsMessageId).IsRequired().HasMaxLength(100);
|
b.Property(x => x.AwsMessageId).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Event).HasMaxLength(20);
|
b.Property(x => x.Event).HasMaxLength(20);
|
||||||
b.Property(x => x.MailAddress).HasMaxLength(100);
|
b.Property(x => x.MailAddress).HasMaxLength(128);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<BackgroundWorker_MailQueueTableFormat>(b =>
|
builder.Entity<BackgroundWorker_MailQueueTableFormat>(b =>
|
||||||
|
|
@ -57,15 +57,15 @@ public static class MailQueueDbContextModelCreatingExtensions
|
||||||
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueueTableFormat)), Prefix.DbSchema);
|
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueueTableFormat)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.TableName).IsRequired().HasMaxLength(100);
|
b.Property(x => x.TableName).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.ColumnName).HasMaxLength(50);
|
b.Property(x => x.ColumnName).HasMaxLength(64);
|
||||||
b.Property(x => x.Caption).HasMaxLength(50);
|
b.Property(x => x.Caption).HasMaxLength(64);
|
||||||
b.Property(x => x.HeaderCss).HasMaxLength(1000);
|
b.Property(x => x.HeaderCss).HasMaxLength(1024);
|
||||||
b.Property(x => x.Css).HasMaxLength(1000);
|
b.Property(x => x.Css).HasMaxLength(1024);
|
||||||
b.Property(x => x.FooterCss).HasMaxLength(1000);
|
b.Property(x => x.FooterCss).HasMaxLength(1024);
|
||||||
b.Property(x => x.DataType).HasMaxLength(50);
|
b.Property(x => x.DataType).HasMaxLength(64);
|
||||||
b.Property(x => x.DataFormat).HasMaxLength(50);
|
b.Property(x => x.DataFormat).HasMaxLength(64);
|
||||||
b.Property(x => x.SubTotal).HasMaxLength(50);
|
b.Property(x => x.SubTotal).HasMaxLength(64);
|
||||||
|
|
||||||
// Unique index (TableName + Order)
|
// Unique index (TableName + Order)
|
||||||
b.HasIndex(x => new { x.TableName, x.Order })
|
b.HasIndex(x => new { x.TableName, x.Order })
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ public static class NotificationDbContextModelCreatingExtensions
|
||||||
b.ToTable(TablePrefix.ByName(nameof(NotificationRule)), Prefix.DbSchema);
|
b.ToTable(TablePrefix.ByName(nameof(NotificationRule)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.NotificationType).IsRequired().HasMaxLength(100);
|
b.Property(x => x.NotificationType).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.RecipientType).IsRequired().HasMaxLength(50);
|
b.Property(x => x.RecipientType).IsRequired().HasMaxLength(64);
|
||||||
b.Property(x => x.RecipientId).HasMaxLength(200);
|
b.Property(x => x.RecipientId).HasMaxLength(256);
|
||||||
b.Property(x => x.Channel).IsRequired().HasMaxLength(50);
|
b.Property(x => x.Channel).IsRequired().HasMaxLength(64);
|
||||||
|
|
||||||
// 1:N ilişki NotificationRule -> Notifications
|
// 1:N ilişki NotificationRule -> Notifications
|
||||||
b.HasMany(x => x.Notifications)
|
b.HasMany(x => x.Notifications)
|
||||||
|
|
@ -35,10 +35,10 @@ public static class NotificationDbContextModelCreatingExtensions
|
||||||
b.ToTable(TablePrefix.ByName(nameof(Notification)), Prefix.DbSchema);
|
b.ToTable(TablePrefix.ByName(nameof(Notification)), Prefix.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.NotificationChannel).IsRequired().HasMaxLength(50);
|
b.Property(x => x.NotificationChannel).IsRequired().HasMaxLength(64);
|
||||||
b.Property(x => x.NotificationType).IsRequired().HasMaxLength(100);
|
b.Property(x => x.NotificationType).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Identifier).IsRequired().HasMaxLength(200);
|
b.Property(x => x.Identifier).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Message).IsRequired().HasMaxLength(2000);
|
b.Property(x => x.Message).IsRequired().HasMaxLength(2048);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ public static class SettingsDbContextModelCreatingExtensions
|
||||||
b.Property(a => a.Code).HasMaxLength(128).IsRequired();
|
b.Property(a => a.Code).HasMaxLength(128).IsRequired();
|
||||||
b.Property(a => a.NameKey).HasMaxLength(128).IsRequired();
|
b.Property(a => a.NameKey).HasMaxLength(128).IsRequired();
|
||||||
b.Property(a => a.DescriptionKey).HasMaxLength(512);
|
b.Property(a => a.DescriptionKey).HasMaxLength(512);
|
||||||
b.Property(a => a.DefaultValue).HasMaxLength(2048);
|
b.Property(a => a.DefaultValue).HasMaxLength(1024);
|
||||||
b.Property(a => a.MainGroupKey).HasMaxLength(128).IsRequired();
|
b.Property(a => a.MainGroupKey).HasMaxLength(128).IsRequired();
|
||||||
b.Property(a => a.SubGroupKey).HasMaxLength(128);
|
b.Property(a => a.SubGroupKey).HasMaxLength(128);
|
||||||
b.Property(a => a.RequiredPermissionName).HasMaxLength(128).IsRequired();
|
b.Property(a => a.RequiredPermissionName).HasMaxLength(128).IsRequired();
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,13 @@ public static class SqlQueryManagerDbContextModelCreatingExtensions
|
||||||
|
|
||||||
b.Property(x => x.Code).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Code).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(256);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Description).HasMaxLength(1000);
|
b.Property(x => x.Description).HasMaxLength(1024);
|
||||||
b.Property(x => x.QueryText).IsRequired();
|
b.Property(x => x.QueryText).IsRequired();
|
||||||
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Status).IsRequired();
|
b.Property(x => x.Status).IsRequired();
|
||||||
b.Property(x => x.Category).HasMaxLength(128);
|
b.Property(x => x.Category).HasMaxLength(128);
|
||||||
b.Property(x => x.Tags).HasMaxLength(500);
|
b.Property(x => x.Tags).HasMaxLength(512);
|
||||||
b.Property(x => x.Parameters).HasMaxLength(4000);
|
b.Property(x => x.Parameters).HasMaxLength(4096);
|
||||||
|
|
||||||
b.HasIndex(x => x.Code);
|
b.HasIndex(x => x.Code);
|
||||||
b.HasIndex(x => x.DataSourceCode);
|
b.HasIndex(x => x.DataSourceCode);
|
||||||
|
|
@ -42,12 +42,12 @@ public static class SqlQueryManagerDbContextModelCreatingExtensions
|
||||||
b.Property(x => x.ProcedureName).IsRequired().HasMaxLength(128);
|
b.Property(x => x.ProcedureName).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.SchemaName).IsRequired().HasMaxLength(128);
|
b.Property(x => x.SchemaName).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.DisplayName).IsRequired().HasMaxLength(256);
|
b.Property(x => x.DisplayName).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Description).HasMaxLength(1000);
|
b.Property(x => x.Description).HasMaxLength(1024);
|
||||||
b.Property(x => x.ProcedureBody).IsRequired();
|
b.Property(x => x.ProcedureBody).IsRequired();
|
||||||
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Status).IsRequired();
|
b.Property(x => x.Status).IsRequired();
|
||||||
b.Property(x => x.Category).HasMaxLength(128);
|
b.Property(x => x.Category).HasMaxLength(128);
|
||||||
b.Property(x => x.Parameters).HasMaxLength(4000);
|
b.Property(x => x.Parameters).HasMaxLength(4096);
|
||||||
|
|
||||||
b.HasIndex(x => new { x.SchemaName, x.ProcedureName });
|
b.HasIndex(x => new { x.SchemaName, x.ProcedureName });
|
||||||
b.HasIndex(x => x.DataSourceCode);
|
b.HasIndex(x => x.DataSourceCode);
|
||||||
|
|
@ -64,7 +64,7 @@ public static class SqlQueryManagerDbContextModelCreatingExtensions
|
||||||
b.Property(x => x.ViewName).IsRequired().HasMaxLength(128);
|
b.Property(x => x.ViewName).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.SchemaName).IsRequired().HasMaxLength(128);
|
b.Property(x => x.SchemaName).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.DisplayName).IsRequired().HasMaxLength(256);
|
b.Property(x => x.DisplayName).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Description).HasMaxLength(1000);
|
b.Property(x => x.Description).HasMaxLength(1024);
|
||||||
b.Property(x => x.ViewDefinition).IsRequired();
|
b.Property(x => x.ViewDefinition).IsRequired();
|
||||||
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Status).IsRequired();
|
b.Property(x => x.Status).IsRequired();
|
||||||
|
|
@ -85,14 +85,14 @@ public static class SqlQueryManagerDbContextModelCreatingExtensions
|
||||||
b.Property(x => x.FunctionName).IsRequired().HasMaxLength(128);
|
b.Property(x => x.FunctionName).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.SchemaName).IsRequired().HasMaxLength(128);
|
b.Property(x => x.SchemaName).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.DisplayName).IsRequired().HasMaxLength(256);
|
b.Property(x => x.DisplayName).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Description).HasMaxLength(1000);
|
b.Property(x => x.Description).HasMaxLength(1024);
|
||||||
b.Property(x => x.FunctionType).IsRequired();
|
b.Property(x => x.FunctionType).IsRequired();
|
||||||
b.Property(x => x.FunctionBody).IsRequired();
|
b.Property(x => x.FunctionBody).IsRequired();
|
||||||
b.Property(x => x.ReturnType).IsRequired().HasMaxLength(256);
|
b.Property(x => x.ReturnType).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
b.Property(x => x.DataSourceCode).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Status).IsRequired();
|
b.Property(x => x.Status).IsRequired();
|
||||||
b.Property(x => x.Category).HasMaxLength(128);
|
b.Property(x => x.Category).HasMaxLength(128);
|
||||||
b.Property(x => x.Parameters).HasMaxLength(4000);
|
b.Property(x => x.Parameters).HasMaxLength(4096);
|
||||||
|
|
||||||
b.HasIndex(x => new { x.SchemaName, x.FunctionName });
|
b.HasIndex(x => new { x.SchemaName, x.FunctionName });
|
||||||
b.HasIndex(x => x.DataSourceCode);
|
b.HasIndex(x => x.DataSourceCode);
|
||||||
|
|
|
||||||
|
|
@ -3860,8 +3860,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
Order = 1, ColCount = 2, ColSpan = 2, ItemType = "group",
|
Order = 1, ColCount = 2, ColSpan = 2, ItemType = "group",
|
||||||
Items =[
|
Items =[
|
||||||
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||||
new EditingFormItemDto { Order = 2, DataField = "StartHour", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
new EditingFormItemDto { Order = 2, DataField = "StartTime", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
||||||
new EditingFormItemDto { Order = 3, DataField = "EndHour", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
new EditingFormItemDto { Order = 3, DataField = "EndTime", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxDateBox, EditorOptions = EditorOptionValues.TimeSpanOptions },
|
||||||
new EditingFormItemDto { Order = 4, DataField = "Monday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox },
|
new EditingFormItemDto { Order = 4, DataField = "Monday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox },
|
||||||
new EditingFormItemDto { Order = 5, DataField = "Tuesday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox },
|
new EditingFormItemDto { Order = 5, DataField = "Tuesday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox },
|
||||||
new EditingFormItemDto { Order = 6, DataField = "Wednesday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox },
|
new EditingFormItemDto { Order = 6, DataField = "Wednesday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox },
|
||||||
|
|
@ -3925,7 +3925,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Date,
|
SourceDbType = DbType.Date,
|
||||||
FieldName = "StartHour",
|
FieldName = "StartTime",
|
||||||
Width = 150,
|
Width = 150,
|
||||||
ListOrderNo = 3,
|
ListOrderNo = 3,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
@ -3940,7 +3940,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Date,
|
SourceDbType = DbType.Date,
|
||||||
FieldName = "EndHour",
|
FieldName = "EndTime",
|
||||||
Width = 150,
|
Width = 150,
|
||||||
ListOrderNo = 4,
|
ListOrderNo = 4,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ public class WorkHour : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public DateTime StartHour { get; set; }
|
public DateTime StartTime { get; set; }
|
||||||
public DateTime EndHour { get; set; }
|
public DateTime EndTime { get; set; }
|
||||||
|
|
||||||
public bool? Monday { get; set; }
|
public bool? Monday { get; set; }
|
||||||
public bool? Tuesday { get; set; }
|
public bool? Tuesday { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -28,5 +28,5 @@ public class PlanWizard : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
// Collections
|
// Collections
|
||||||
public string RequiredSkillsJson { get; set; }
|
public string RequiredSkillsJson { get; set; }
|
||||||
public List<PlanWizardMaterial> Materials { get; set; }
|
public List<PlanWizardMaterial> Materials { get; set; }
|
||||||
public List<PlanEmployee> Employees { get; set; }
|
public List<PlanWizardEmployee> Employees { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Erp.Platform.Entities;
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
public class PlanEmployee : FullAuditedEntity<Guid>, IMultiTenant
|
public class PlanWizardEmployee : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ public class WorkorderType : FullAuditedEntity<string>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
public string Code { get; set; }
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,10 @@ public class Quotation : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
public string QuotationNumber { get; set; }
|
public string QuotationNumber { get; set; }
|
||||||
public string RequestId { get; set; }
|
|
||||||
|
public Guid RequestId { get; set; }
|
||||||
|
public Request Request { get; set; }
|
||||||
|
|
||||||
public string RequestTitle { get; set; }
|
public string RequestTitle { get; set; }
|
||||||
|
|
||||||
public string RequestTypeId { get; set; }
|
public string RequestTypeId { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -30,5 +30,6 @@ public class Request : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public List<RequestItem> Items { get; set; } = [];
|
public List<RequestItem> Items { get; set; } = [];
|
||||||
|
|
||||||
public ICollection<PurchaseOrder> PurchaseOrders { get; set; }
|
public ICollection<PurchaseOrder> PurchaseOrders { get; set; }
|
||||||
|
public ICollection<Quotation> Quotations { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Erp.Platform.Migrations
|
namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251211144929_Initial")]
|
[Migration("20251211184247_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -77,7 +77,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("TwoLetterISOLanguageName")
|
b.Property<string>("TwoLetterISOLanguageName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(2)
|
||||||
|
.HasColumnType("nvarchar(2)");
|
||||||
|
|
||||||
b.Property<string>("UiCultureName")
|
b.Property<string>("UiCultureName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -668,7 +670,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("FollowUpActivity")
|
b.Property<string>("FollowUpActivity")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<DateTime?>("FollowUpDate")
|
b.Property<DateTime?>("FollowUpDate")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -688,13 +691,15 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("NextSteps")
|
b.Property<string>("NextSteps")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<Guid?>("OpportunityId")
|
b.Property<Guid?>("OpportunityId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Outcome")
|
b.Property<string>("Outcome")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<DateTime?>("StartTime")
|
b.Property<DateTime?>("StartTime")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -721,10 +726,12 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ApiUrl")
|
b.Property<string>("ApiUrl")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -1480,7 +1487,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("ReadTime")
|
b.Property<string>("ReadTime")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Slug")
|
b.Property<string>("Slug")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -2916,13 +2924,15 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(2000)");
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<string>("MessageType")
|
b.Property<string>("MessageType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<Guid?>("RecipientId")
|
b.Property<Guid?>("RecipientId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("RecipientName")
|
b.Property<string>("RecipientName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
b.Property<Guid?>("SenderId")
|
b.Property<Guid?>("SenderId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -3306,7 +3316,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("CostCenterType")
|
b.Property<string>("CostCenterType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -4019,7 +4030,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("Menu")
|
b.Property<string>("Menu")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<Guid?>("MigrationId")
|
b.Property<Guid?>("MigrationId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4834,10 +4847,12 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Address1")
|
b.Property<string>("Address1")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("Address2")
|
b.Property<string>("Address2")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("Avatar")
|
b.Property<string>("Avatar")
|
||||||
.HasMaxLength(250)
|
.HasMaxLength(250)
|
||||||
|
|
@ -4857,7 +4872,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("City")
|
b.Property<string>("City")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(16)
|
||||||
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
b.Property<string>("Code")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -4865,7 +4881,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Country")
|
b.Property<string>("Country")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(8)
|
||||||
|
.HasColumnType("nvarchar(8)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -4892,29 +4909,35 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("District")
|
b.Property<string>("District")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<string>("Email")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
.HasColumnType("nvarchar(150)");
|
.HasColumnType("nvarchar(150)");
|
||||||
|
|
||||||
b.Property<string>("EmergencyContactName")
|
b.Property<string>("EmergencyContactName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
b.Property<string>("EmergencyContactPhoneNumber")
|
b.Property<string>("EmergencyContactPhoneNumber")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("EmergencyContactRelationship")
|
b.Property<string>("EmergencyContactRelationship")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("EmployeeStatus")
|
b.Property<string>("EmployeeStatus")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("EmploymentTypeId")
|
b.Property<Guid?>("EmploymentTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Gender")
|
b.Property<string>("Gender")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<DateTime>("HireDate")
|
b.Property<DateTime>("HireDate")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -4949,7 +4972,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("MaritalStatus")
|
b.Property<string>("MaritalStatus")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("MobileNumber")
|
b.Property<string>("MobileNumber")
|
||||||
.HasMaxLength(20)
|
.HasMaxLength(20)
|
||||||
|
|
@ -4973,7 +4997,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("PostalCode")
|
b.Property<string>("PostalCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -4983,7 +5008,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("Township")
|
b.Property<string>("Township")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("WorkLocation")
|
b.Property<string>("WorkLocation")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
|
|
@ -6600,7 +6626,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("LeaveType")
|
b.Property<string>("LeaveType")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("Reason")
|
b.Property<string>("Reason")
|
||||||
.HasMaxLength(500)
|
.HasMaxLength(500)
|
||||||
|
|
@ -8581,10 +8608,14 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("EntityId")
|
b.Property<string>("EntityId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("EntityName")
|
b.Property<string>("EntityName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("FilesJson")
|
b.Property<string>("FilesJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -8614,7 +8645,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Type")
|
b.Property<string>("Type")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -9015,7 +9047,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("TeamCode")
|
b.Property<string>("TeamCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(95)
|
||||||
|
.HasColumnType("nvarchar(95)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -9357,11 +9390,12 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("Reason")
|
b.Property<string>("Reason")
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(2000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<string>("RejectionReason")
|
b.Property<string>("RejectionReason")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<DateTime>("StartTime")
|
b.Property<DateTime>("StartTime")
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(10)
|
||||||
|
|
@ -9369,7 +9403,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Status")
|
b.Property<string>("Status")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -10125,7 +10160,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("Status")
|
b.Property<string>("Status")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<long?>("TaxNumber")
|
b.Property<long?>("TaxNumber")
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
@ -10289,67 +10325,6 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Hr_T_Performance360", (string)null);
|
b.ToTable("Hr_T_Performance360", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("CreationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CreatorId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("CreatorId");
|
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("DeleterId");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DeletionTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("DeletionTime");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<Guid>("EmployeeId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("EndDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("bit")
|
|
||||||
.HasDefaultValue(false)
|
|
||||||
.HasColumnName("IsDeleted");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("LastModificationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("LastModificationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("LastModifierId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("LastModifierId");
|
|
||||||
|
|
||||||
b.Property<Guid>("PlanWizardId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("TenantId");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("PlanWizardId");
|
|
||||||
|
|
||||||
b.ToTable("Mnt_T_PlanWizardEmployee", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -10450,6 +10425,68 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Mnt_T_PlanWizard", (string)null);
|
b.ToTable("Mnt_T_PlanWizard", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardEmployee", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<Guid>("EmployeeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("EndDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<Guid>("PlanWizardId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("StartDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("PlanWizardId");
|
||||||
|
|
||||||
|
b.ToTable("Mnt_T_PlanWizardEmployee", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -12027,13 +12064,16 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Strategy")
|
b.Property<string>("Strategy")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("TargetLocationId")
|
b.Property<string>("TargetLocationId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("TargetZoneId")
|
b.Property<string>("TargetZoneId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -12474,8 +12514,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("RequestId")
|
b.Property<Guid>("RequestId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("RequestTitle")
|
b.Property<string>("RequestTitle")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -12523,6 +12563,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("PaymentTermId");
|
b.HasIndex("PaymentTermId");
|
||||||
|
|
||||||
|
b.HasIndex("RequestId");
|
||||||
|
|
||||||
b.HasIndex("RequestTypeId");
|
b.HasIndex("RequestTypeId");
|
||||||
|
|
||||||
b.HasIndex("StatusId");
|
b.HasIndex("StatusId");
|
||||||
|
|
@ -13169,7 +13211,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("RequestNumber")
|
b.Property<string>("RequestNumber")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("RequestTypeId")
|
b.Property<string>("RequestTypeId")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -14212,7 +14256,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Type")
|
b.Property<string>("Type")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -14279,7 +14324,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Route")
|
b.Property<string>("Route")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -14682,13 +14728,15 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("PollQuestion")
|
b.Property<string>("PollQuestion")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<int?>("PollTotalVotes")
|
b.Property<int?>("PollTotalVotes")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("PollUserVoteId")
|
b.Property<string>("PollUserVoteId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid>("SocialPostId")
|
b.Property<Guid>("SocialPostId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -15191,7 +15239,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Value")
|
b.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -15942,7 +15991,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("BadgeNumber")
|
b.Property<string>("BadgeNumber")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<DateTime?>("CheckIn")
|
b.Property<DateTime?>("CheckIn")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -16002,7 +16052,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("Photo")
|
b.Property<string>("Photo")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(300)
|
||||||
|
.HasColumnType("nvarchar(300)");
|
||||||
|
|
||||||
b.Property<string>("Purpose")
|
b.Property<string>("Purpose")
|
||||||
.HasMaxLength(250)
|
.HasMaxLength(250)
|
||||||
|
|
@ -17349,9 +17400,6 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
.HasColumnName("CreationTime");
|
.HasColumnName("CreationTime");
|
||||||
|
|
@ -17621,7 +17669,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("LastPostUserName")
|
b.Property<string>("LastPostUserName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -21256,17 +21305,6 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Template");
|
b.Navigation("Template");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
|
||||||
.WithMany("Employees")
|
|
||||||
.HasForeignKey("PlanWizardId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("PlanWizard");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
||||||
|
|
@ -21278,6 +21316,17 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Workcenter");
|
b.Navigation("Workcenter");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardEmployee", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
|
.WithMany("Employees")
|
||||||
|
.HasForeignKey("PlanWizardId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PlanWizard");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
|
|
@ -21699,6 +21748,12 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Erp.Platform.Entities.Request", "Request")
|
||||||
|
.WithMany("Quotations")
|
||||||
|
.HasForeignKey("RequestId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.RequestType", "RequestType")
|
b.HasOne("Erp.Platform.Entities.RequestType", "RequestType")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("RequestTypeId")
|
.HasForeignKey("RequestTypeId")
|
||||||
|
|
@ -21723,6 +21778,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Navigation("PaymentTerm");
|
b.Navigation("PaymentTerm");
|
||||||
|
|
||||||
|
b.Navigation("Request");
|
||||||
|
|
||||||
b.Navigation("RequestType");
|
b.Navigation("RequestType");
|
||||||
|
|
||||||
b.Navigation("Status");
|
b.Navigation("Status");
|
||||||
|
|
@ -23007,6 +23064,8 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Items");
|
b.Navigation("Items");
|
||||||
|
|
||||||
b.Navigation("PurchaseOrders");
|
b.Navigation("PurchaseOrders");
|
||||||
|
|
||||||
|
b.Navigation("Quotations");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.RequestType", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.RequestType", b =>
|
||||||
|
|
@ -1003,7 +1003,7 @@ namespace Erp.Platform.Migrations
|
||||||
Icon = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
Icon = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
Title = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
Features = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Features = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
|
@ -1414,7 +1414,7 @@ namespace Erp.Platform.Migrations
|
||||||
NetSalary = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
NetSalary = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
TaxNumber = table.Column<long>(type: "bigint", nullable: true),
|
TaxNumber = table.Column<long>(type: "bigint", nullable: true),
|
||||||
SocialSecurity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
SocialSecurity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
Status = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
PaymentDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
PaymentDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
|
@ -1594,7 +1594,6 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
Code = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
||||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
|
|
@ -1751,7 +1750,7 @@ namespace Erp.Platform.Migrations
|
||||||
ArrivalTime = table.Column<DateTime>(type: "datetime2", maxLength: 10, nullable: false),
|
ArrivalTime = table.Column<DateTime>(type: "datetime2", maxLength: 10, nullable: false),
|
||||||
Capacity = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
Capacity = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
Available = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
Available = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
Route = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Route = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -1866,8 +1865,8 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
ApiUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ApiUrl = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false)
|
IsActive = table.Column<bool>(type: "bit", nullable: false)
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
|
|
@ -1936,7 +1935,7 @@ namespace Erp.Platform.Migrations
|
||||||
UiCultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
UiCultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
||||||
DisplayName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
DisplayName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
IsEnabled = table.Column<bool>(type: "bit", nullable: false),
|
IsEnabled = table.Column<bool>(type: "bit", nullable: false),
|
||||||
TwoLetterISOLanguageName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TwoLetterISOLanguageName = table.Column<string>(type: "nvarchar(2)", maxLength: 2, nullable: false),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -2428,7 +2427,7 @@ namespace Erp.Platform.Migrations
|
||||||
LastPostId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
LastPostId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastPostDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastPostDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
LastPostUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
LastPostUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastPostUserName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
LastPostUserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -2698,7 +2697,7 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
Menu = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Menu = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
DisplayName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
DisplayName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
TableName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
TableName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
|
|
@ -2799,9 +2798,9 @@ namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
EntityName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EntityName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
EntityId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EntityId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
Subject = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
Subject = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||||
Content = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false),
|
Content = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false),
|
||||||
FilesJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
FilesJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
|
@ -3245,13 +3244,13 @@ namespace Erp.Platform.Migrations
|
||||||
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
Priority = table.Column<int>(type: "int", nullable: false, defaultValue: 1),
|
Priority = table.Column<int>(type: "int", nullable: false, defaultValue: 1),
|
||||||
Strategy = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Strategy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
MaterialTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
MaterialTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
MaterialGroupId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
MaterialGroupId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
WarehouseId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
WarehouseId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
TargetZoneId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TargetZoneId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
TargetLocationId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TargetLocationId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -3728,9 +3727,9 @@ namespace Erp.Platform.Migrations
|
||||||
Message = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false),
|
Message = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false),
|
||||||
Timestamp = table.Column<DateTime>(type: "datetime2", nullable: false),
|
Timestamp = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
RecipientId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
RecipientId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
RecipientName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
RecipientName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||||
IsTeacher = table.Column<bool>(type: "bit", nullable: false),
|
IsTeacher = table.Column<bool>(type: "bit", nullable: false),
|
||||||
MessageType = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
MessageType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -5339,7 +5338,7 @@ namespace Erp.Platform.Migrations
|
||||||
ContentEn = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
ContentEn = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
Summary = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false),
|
Summary = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: false),
|
||||||
CoverImage = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
CoverImage = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
ReadTime = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ReadTime = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
ViewCount = table.Column<int>(type: "int", nullable: true),
|
ViewCount = table.Column<int>(type: "int", nullable: true),
|
||||||
|
|
@ -6030,9 +6029,9 @@ namespace Erp.Platform.Migrations
|
||||||
EndTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
EndTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
Duration = table.Column<int>(type: "int", nullable: true),
|
Duration = table.Column<int>(type: "int", nullable: true),
|
||||||
FollowUpDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
FollowUpDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
FollowUpActivity = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
FollowUpActivity = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
||||||
Outcome = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Outcome = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
||||||
NextSteps = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
NextSteps = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -6088,7 +6087,7 @@ namespace Erp.Platform.Migrations
|
||||||
ExpectedCloseDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
ExpectedCloseDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
ActualCloseDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
ActualCloseDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
TeamCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TeamCode = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: true),
|
||||||
SourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
LossReasonId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
LossReasonId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
|
|
@ -6128,7 +6127,7 @@ namespace Erp.Platform.Migrations
|
||||||
ParentCostCenterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
ParentCostCenterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
ResponsibleEmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
ResponsibleEmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
DepartmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
DepartmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
CostCenterType = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CostCenterType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
BudgetedAmount = table.Column<decimal>(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false),
|
BudgetedAmount = table.Column<decimal>(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false),
|
||||||
ActualAmount = table.Column<decimal>(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false),
|
ActualAmount = table.Column<decimal>(type: "decimal(18,4)", precision: 18, scale: 4, nullable: false),
|
||||||
Currency = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: false),
|
Currency = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: false),
|
||||||
|
|
@ -6368,21 +6367,21 @@ namespace Erp.Platform.Migrations
|
||||||
Avatar = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
|
Avatar = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
|
||||||
NationalId = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
NationalId = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
BirthDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
BirthDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
Gender = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Gender = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||||
MaritalStatus = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
MaritalStatus = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
Country = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Country = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
||||||
City = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
City = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
|
||||||
District = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
District = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Township = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Township = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
PostalCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
PostalCode = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||||
MobileNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
MobileNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
PhoneNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
PhoneNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
Email = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
Email = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
||||||
Address1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Address1 = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
Address2 = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Address2 = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
EmergencyContactName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EmergencyContactName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||||
EmergencyContactRelationship = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EmergencyContactRelationship = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
EmergencyContactPhoneNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EmergencyContactPhoneNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
HireDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
HireDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
TerminationDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
TerminationDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
EmploymentTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
EmploymentTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
|
@ -6396,7 +6395,7 @@ namespace Erp.Platform.Migrations
|
||||||
BankId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
BankId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
IbanNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
IbanNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
BadgeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
BadgeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
EmployeeStatus = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EmployeeStatus = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
|
@ -6696,7 +6695,7 @@ namespace Erp.Platform.Migrations
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
LeaveType = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
LeaveType = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
TotalDays = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
TotalDays = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
|
|
@ -6738,11 +6737,11 @@ namespace Erp.Platform.Migrations
|
||||||
StartTime = table.Column<DateTime>(type: "datetime2", maxLength: 10, nullable: false),
|
StartTime = table.Column<DateTime>(type: "datetime2", maxLength: 10, nullable: false),
|
||||||
EndTime = table.Column<DateTime>(type: "datetime2", maxLength: 10, nullable: false),
|
EndTime = table.Column<DateTime>(type: "datetime2", maxLength: 10, nullable: false),
|
||||||
TotalHours = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
TotalHours = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
Reason = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
Reason = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
||||||
Status = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
|
||||||
ApprovedById = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
ApprovedById = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
ApprovedDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
ApprovedDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
RejectionReason = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
RejectionReason = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
||||||
Rate = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
Rate = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
Amount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
Amount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
|
@ -7000,8 +6999,8 @@ namespace Erp.Platform.Migrations
|
||||||
CheckOut = table.Column<DateTime>(type: "datetime2", nullable: true),
|
CheckOut = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
|
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
|
||||||
BadgeNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
BadgeNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
Photo = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Photo = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -7021,95 +7020,13 @@ namespace Erp.Platform.Migrations
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "Scp_T_Quotation",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
QuotationNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
||||||
RequestId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
||||||
RequestTitle = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
|
||||||
RequestTypeId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
||||||
SupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
QuotationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
||||||
ValidUntil = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
||||||
StatusId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
||||||
TotalAmount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
|
||||||
Currency = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
|
||||||
PaymentTermId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
|
||||||
DeliveryTermId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
||||||
DeliveryTime = table.Column<int>(type: "int", nullable: true, defaultValue: 0),
|
|
||||||
EvaluationScore = table.Column<int>(type: "int", nullable: true, defaultValue: 0),
|
|
||||||
EvaluationComments = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
|
||||||
EvaluationNotes = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
|
||||||
Notes = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
|
||||||
SubmittedBy = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
||||||
SubmittedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
EvaluatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
||||||
PaymentMethodId = table.Column<string>(type: "nvarchar(450)", nullable: true),
|
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
||||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
||||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_Scp_T_Quotation", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_Quotation_Adm_T_Partner_SupplierId",
|
|
||||||
column: x => x.SupplierId,
|
|
||||||
principalTable: "Adm_T_Partner",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_Quotation_Adm_T_PaymentMethod_PaymentMethodId",
|
|
||||||
column: x => x.PaymentMethodId,
|
|
||||||
principalTable: "Adm_T_PaymentMethod",
|
|
||||||
principalColumn: "Id");
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_Quotation_Hr_T_Employee_EmployeeId",
|
|
||||||
column: x => x.EmployeeId,
|
|
||||||
principalTable: "Hr_T_Employee",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_Quotation_Scp_T_DeliveryTerm_DeliveryTermId",
|
|
||||||
column: x => x.DeliveryTermId,
|
|
||||||
principalTable: "Scp_T_DeliveryTerm",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_Quotation_Scp_T_PaymentTerm_PaymentTermId",
|
|
||||||
column: x => x.PaymentTermId,
|
|
||||||
principalTable: "Scp_T_PaymentTerm",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_Quotation_Scp_T_QuotationStatus_StatusId",
|
|
||||||
column: x => x.StatusId,
|
|
||||||
principalTable: "Scp_T_QuotationStatus",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_Quotation_Scp_T_RequestType_RequestTypeId",
|
|
||||||
column: x => x.RequestTypeId,
|
|
||||||
principalTable: "Scp_T_RequestType",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Scp_T_Request",
|
name: "Scp_T_Request",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
RequestNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
RequestNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
RequestTypeId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
RequestTypeId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
DepartmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
DepartmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
|
@ -7205,7 +7122,7 @@ namespace Erp.Platform.Migrations
|
||||||
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -7499,7 +7416,7 @@ namespace Erp.Platform.Migrations
|
||||||
ResponseId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
ResponseId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
QuestionId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
QuestionId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
QuestionType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
QuestionType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
Value = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Value = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -7688,10 +7605,10 @@ namespace Erp.Platform.Migrations
|
||||||
SocialPostId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SocialPostId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
Urls = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
Urls = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
||||||
PollQuestion = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
PollQuestion = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
PollTotalVotes = table.Column<int>(type: "int", nullable: true),
|
PollTotalVotes = table.Column<int>(type: "int", nullable: true),
|
||||||
PollEndsAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
PollEndsAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
PollUserVoteId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
PollUserVoteId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -7712,71 +7629,33 @@ namespace Erp.Platform.Migrations
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Scp_T_QuotationItem",
|
name: "Scp_T_Quotation",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
QuotationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
QuotationNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
MaterialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
RequestId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Quantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
RequestTitle = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
||||||
UomId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
RequestTypeId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
UnitPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
|
||||||
TotalPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
|
||||||
LeadTime = table.Column<int>(type: "int", nullable: true, defaultValue: 0),
|
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
||||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
||||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_Scp_T_QuotationItem", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_QuotationItem_Adm_T_Uom_UomId",
|
|
||||||
column: x => x.UomId,
|
|
||||||
principalTable: "Adm_T_Uom",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_QuotationItem_Scp_T_Material_MaterialId",
|
|
||||||
column: x => x.MaterialId,
|
|
||||||
principalTable: "Scp_T_Material",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Restrict);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_Scp_T_QuotationItem_Scp_T_Quotation_QuotationId",
|
|
||||||
column: x => x.QuotationId,
|
|
||||||
principalTable: "Scp_T_Quotation",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "Scp_T_PurchaseOrder",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
||||||
OrderNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
||||||
SupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
OrderDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
QuotationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
DeliveryDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
ValidUntil = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
StatusId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
|
TotalAmount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
|
Currency = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
||||||
PaymentTermId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
PaymentTermId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
Terms = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
DeliveryTermId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
|
DeliveryTime = table.Column<int>(type: "int", nullable: true, defaultValue: 0),
|
||||||
|
EvaluationScore = table.Column<int>(type: "int", nullable: true, defaultValue: 0),
|
||||||
|
EvaluationComments = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
|
EvaluationNotes = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
Notes = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
Notes = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
RequestId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
SubmittedBy = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
QuotationId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
SubmittedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
Currency = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: false),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
ExchangeRate = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
EvaluatedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
Subtotal = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
PaymentMethodId = table.Column<string>(type: "nvarchar(450)", nullable: true),
|
||||||
TaxAmount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
|
||||||
TotalAmount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
|
||||||
Status = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -7787,27 +7666,50 @@ namespace Erp.Platform.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_Scp_T_PurchaseOrder", x => x.Id);
|
table.PrimaryKey("PK_Scp_T_Quotation", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Scp_T_PurchaseOrder_Adm_T_Partner_SupplierId",
|
name: "FK_Scp_T_Quotation_Adm_T_Partner_SupplierId",
|
||||||
column: x => x.SupplierId,
|
column: x => x.SupplierId,
|
||||||
principalTable: "Adm_T_Partner",
|
principalTable: "Adm_T_Partner",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_Quotation_Adm_T_PaymentMethod_PaymentMethodId",
|
||||||
|
column: x => x.PaymentMethodId,
|
||||||
|
principalTable: "Adm_T_PaymentMethod",
|
||||||
|
principalColumn: "Id");
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_Quotation_Hr_T_Employee_EmployeeId",
|
||||||
|
column: x => x.EmployeeId,
|
||||||
|
principalTable: "Hr_T_Employee",
|
||||||
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Scp_T_PurchaseOrder_Scp_T_PaymentTerm_PaymentTermId",
|
name: "FK_Scp_T_Quotation_Scp_T_DeliveryTerm_DeliveryTermId",
|
||||||
|
column: x => x.DeliveryTermId,
|
||||||
|
principalTable: "Scp_T_DeliveryTerm",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_Quotation_Scp_T_PaymentTerm_PaymentTermId",
|
||||||
column: x => x.PaymentTermId,
|
column: x => x.PaymentTermId,
|
||||||
principalTable: "Scp_T_PaymentTerm",
|
principalTable: "Scp_T_PaymentTerm",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Scp_T_PurchaseOrder_Scp_T_Quotation_QuotationId",
|
name: "FK_Scp_T_Quotation_Scp_T_QuotationStatus_StatusId",
|
||||||
column: x => x.QuotationId,
|
column: x => x.StatusId,
|
||||||
principalTable: "Scp_T_Quotation",
|
principalTable: "Scp_T_QuotationStatus",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Scp_T_PurchaseOrder_Scp_T_Request_RequestId",
|
name: "FK_Scp_T_Quotation_Scp_T_RequestType_RequestTypeId",
|
||||||
|
column: x => x.RequestTypeId,
|
||||||
|
principalTable: "Scp_T_RequestType",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_Quotation_Scp_T_Request_RequestId",
|
||||||
column: x => x.RequestId,
|
column: x => x.RequestId,
|
||||||
principalTable: "Scp_T_Request",
|
principalTable: "Scp_T_Request",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
|
|
@ -7998,21 +7900,26 @@ namespace Erp.Platform.Migrations
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Scp_T_PurchaseOrderItem",
|
name: "Scp_T_PurchaseOrder",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
PurchaseOrderId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
OrderNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
MaterialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SupplierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
UnitPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
OrderDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
Quantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
DeliveryDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
UomId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
PaymentTermId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
TotalPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
Terms = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
ReceivedQuantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
Notes = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
DeliveredQuantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
RequestId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
RemainingQuantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
QuotationId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
Currency = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: false),
|
||||||
|
ExchangeRate = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
Subtotal = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
TaxAmount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
TotalAmount = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
Status = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -8023,25 +7930,76 @@ namespace Erp.Platform.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_Scp_T_PurchaseOrderItem", x => x.Id);
|
table.PrimaryKey("PK_Scp_T_PurchaseOrder", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Scp_T_PurchaseOrderItem_Adm_T_Uom_UomId",
|
name: "FK_Scp_T_PurchaseOrder_Adm_T_Partner_SupplierId",
|
||||||
|
column: x => x.SupplierId,
|
||||||
|
principalTable: "Adm_T_Partner",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_PurchaseOrder_Scp_T_PaymentTerm_PaymentTermId",
|
||||||
|
column: x => x.PaymentTermId,
|
||||||
|
principalTable: "Scp_T_PaymentTerm",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_PurchaseOrder_Scp_T_Quotation_QuotationId",
|
||||||
|
column: x => x.QuotationId,
|
||||||
|
principalTable: "Scp_T_Quotation",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_PurchaseOrder_Scp_T_Request_RequestId",
|
||||||
|
column: x => x.RequestId,
|
||||||
|
principalTable: "Scp_T_Request",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Scp_T_QuotationItem",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
QuotationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
MaterialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
Quantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
|
UomId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
|
UnitPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
|
TotalPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
|
LeadTime = table.Column<int>(type: "int", nullable: true, defaultValue: 0),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Scp_T_QuotationItem", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_QuotationItem_Adm_T_Uom_UomId",
|
||||||
column: x => x.UomId,
|
column: x => x.UomId,
|
||||||
principalTable: "Adm_T_Uom",
|
principalTable: "Adm_T_Uom",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Scp_T_PurchaseOrderItem_Scp_T_Material_MaterialId",
|
name: "FK_Scp_T_QuotationItem_Scp_T_Material_MaterialId",
|
||||||
column: x => x.MaterialId,
|
column: x => x.MaterialId,
|
||||||
principalTable: "Scp_T_Material",
|
principalTable: "Scp_T_Material",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Scp_T_PurchaseOrderItem_Scp_T_PurchaseOrder_PurchaseOrderId",
|
name: "FK_Scp_T_QuotationItem_Scp_T_Quotation_QuotationId",
|
||||||
column: x => x.PurchaseOrderId,
|
column: x => x.QuotationId,
|
||||||
principalTable: "Scp_T_PurchaseOrder",
|
principalTable: "Scp_T_Quotation",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
|
|
@ -8098,6 +8056,53 @@ namespace Erp.Platform.Migrations
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Scp_T_PurchaseOrderItem",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
PurchaseOrderId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
MaterialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
UnitPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
Quantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
UomId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
|
TotalPrice = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
ReceivedQuantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
DeliveredQuantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
RemainingQuantity = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Scp_T_PurchaseOrderItem", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_PurchaseOrderItem_Adm_T_Uom_UomId",
|
||||||
|
column: x => x.UomId,
|
||||||
|
principalTable: "Adm_T_Uom",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_PurchaseOrderItem_Scp_T_Material_MaterialId",
|
||||||
|
column: x => x.MaterialId,
|
||||||
|
principalTable: "Scp_T_Material",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Scp_T_PurchaseOrderItem_Scp_T_PurchaseOrder_PurchaseOrderId",
|
||||||
|
column: x => x.PurchaseOrderId,
|
||||||
|
principalTable: "Scp_T_PurchaseOrder",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Str_T_MovementItem",
|
name: "Str_T_MovementItem",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -9946,6 +9951,11 @@ namespace Erp.Platform.Migrations
|
||||||
table: "Scp_T_Quotation",
|
table: "Scp_T_Quotation",
|
||||||
column: "PaymentTermId");
|
column: "PaymentTermId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Scp_T_Quotation_RequestId",
|
||||||
|
table: "Scp_T_Quotation",
|
||||||
|
column: "RequestId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Scp_T_Quotation_RequestTypeId",
|
name: "IX_Scp_T_Quotation_RequestTypeId",
|
||||||
table: "Scp_T_Quotation",
|
table: "Scp_T_Quotation",
|
||||||
|
|
@ -11035,9 +11045,6 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Scp_T_Quotation");
|
name: "Scp_T_Quotation");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "Scp_T_Request");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Str_T_LocationType");
|
name: "Str_T_LocationType");
|
||||||
|
|
||||||
|
|
@ -11069,7 +11076,7 @@ namespace Erp.Platform.Migrations
|
||||||
name: "Scp_T_QuotationStatus");
|
name: "Scp_T_QuotationStatus");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Scp_T_RequestType");
|
name: "Scp_T_Request");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Str_T_Warehouse");
|
name: "Str_T_Warehouse");
|
||||||
|
|
@ -11083,6 +11090,9 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Mnt_T_WorkcenterType");
|
name: "Mnt_T_WorkcenterType");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Scp_T_RequestType");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Str_T_WarehouseType");
|
name: "Str_T_WarehouseType");
|
||||||
|
|
||||||
|
|
@ -74,7 +74,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("TwoLetterISOLanguageName")
|
b.Property<string>("TwoLetterISOLanguageName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(2)
|
||||||
|
.HasColumnType("nvarchar(2)");
|
||||||
|
|
||||||
b.Property<string>("UiCultureName")
|
b.Property<string>("UiCultureName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -665,7 +667,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("FollowUpActivity")
|
b.Property<string>("FollowUpActivity")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<DateTime?>("FollowUpDate")
|
b.Property<DateTime?>("FollowUpDate")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -685,13 +688,15 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("NextSteps")
|
b.Property<string>("NextSteps")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<Guid?>("OpportunityId")
|
b.Property<Guid?>("OpportunityId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Outcome")
|
b.Property<string>("Outcome")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<DateTime?>("StartTime")
|
b.Property<DateTime?>("StartTime")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -718,10 +723,12 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ApiUrl")
|
b.Property<string>("ApiUrl")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -1477,7 +1484,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("ReadTime")
|
b.Property<string>("ReadTime")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Slug")
|
b.Property<string>("Slug")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -2913,13 +2921,15 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(2000)");
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<string>("MessageType")
|
b.Property<string>("MessageType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<Guid?>("RecipientId")
|
b.Property<Guid?>("RecipientId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("RecipientName")
|
b.Property<string>("RecipientName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
b.Property<Guid?>("SenderId")
|
b.Property<Guid?>("SenderId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -3303,7 +3313,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("CostCenterType")
|
b.Property<string>("CostCenterType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -4016,7 +4027,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("Menu")
|
b.Property<string>("Menu")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<Guid?>("MigrationId")
|
b.Property<Guid?>("MigrationId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4831,10 +4844,12 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Address1")
|
b.Property<string>("Address1")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("Address2")
|
b.Property<string>("Address2")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("Avatar")
|
b.Property<string>("Avatar")
|
||||||
.HasMaxLength(250)
|
.HasMaxLength(250)
|
||||||
|
|
@ -4854,7 +4869,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("City")
|
b.Property<string>("City")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(16)
|
||||||
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
b.Property<string>("Code")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -4862,7 +4878,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Country")
|
b.Property<string>("Country")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(8)
|
||||||
|
.HasColumnType("nvarchar(8)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -4889,29 +4906,35 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("District")
|
b.Property<string>("District")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<string>("Email")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
.HasColumnType("nvarchar(150)");
|
.HasColumnType("nvarchar(150)");
|
||||||
|
|
||||||
b.Property<string>("EmergencyContactName")
|
b.Property<string>("EmergencyContactName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
b.Property<string>("EmergencyContactPhoneNumber")
|
b.Property<string>("EmergencyContactPhoneNumber")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("EmergencyContactRelationship")
|
b.Property<string>("EmergencyContactRelationship")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("EmployeeStatus")
|
b.Property<string>("EmployeeStatus")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("EmploymentTypeId")
|
b.Property<Guid?>("EmploymentTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Gender")
|
b.Property<string>("Gender")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<DateTime>("HireDate")
|
b.Property<DateTime>("HireDate")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -4946,7 +4969,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("MaritalStatus")
|
b.Property<string>("MaritalStatus")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("MobileNumber")
|
b.Property<string>("MobileNumber")
|
||||||
.HasMaxLength(20)
|
.HasMaxLength(20)
|
||||||
|
|
@ -4970,7 +4994,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("PostalCode")
|
b.Property<string>("PostalCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -4980,7 +5005,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("Township")
|
b.Property<string>("Township")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("WorkLocation")
|
b.Property<string>("WorkLocation")
|
||||||
.HasMaxLength(150)
|
.HasMaxLength(150)
|
||||||
|
|
@ -6597,7 +6623,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("LeaveType")
|
b.Property<string>("LeaveType")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("Reason")
|
b.Property<string>("Reason")
|
||||||
.HasMaxLength(500)
|
.HasMaxLength(500)
|
||||||
|
|
@ -8578,10 +8605,14 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("EntityId")
|
b.Property<string>("EntityId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("EntityName")
|
b.Property<string>("EntityName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("FilesJson")
|
b.Property<string>("FilesJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -8611,7 +8642,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Type")
|
b.Property<string>("Type")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -9012,7 +9044,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("TeamCode")
|
b.Property<string>("TeamCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(95)
|
||||||
|
.HasColumnType("nvarchar(95)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -9354,11 +9387,12 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("Reason")
|
b.Property<string>("Reason")
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(2000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<string>("RejectionReason")
|
b.Property<string>("RejectionReason")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<DateTime>("StartTime")
|
b.Property<DateTime>("StartTime")
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(10)
|
||||||
|
|
@ -9366,7 +9400,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Status")
|
b.Property<string>("Status")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -10122,7 +10157,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("Status")
|
b.Property<string>("Status")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<long?>("TaxNumber")
|
b.Property<long?>("TaxNumber")
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
@ -10286,67 +10322,6 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Hr_T_Performance360", (string)null);
|
b.ToTable("Hr_T_Performance360", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("CreationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CreatorId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("CreatorId");
|
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("DeleterId");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DeletionTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("DeletionTime");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<Guid>("EmployeeId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("EndDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("bit")
|
|
||||||
.HasDefaultValue(false)
|
|
||||||
.HasColumnName("IsDeleted");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("LastModificationTime")
|
|
||||||
.HasColumnType("datetime2")
|
|
||||||
.HasColumnName("LastModificationTime");
|
|
||||||
|
|
||||||
b.Property<Guid?>("LastModifierId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("LastModifierId");
|
|
||||||
|
|
||||||
b.Property<Guid>("PlanWizardId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartDate")
|
|
||||||
.HasColumnType("datetime2");
|
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasColumnName("TenantId");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("PlanWizardId");
|
|
||||||
|
|
||||||
b.ToTable("Mnt_T_PlanWizardEmployee", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -10447,6 +10422,68 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Mnt_T_PlanWizard", (string)null);
|
b.ToTable("Mnt_T_PlanWizard", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardEmployee", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<Guid>("EmployeeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("EndDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<Guid>("PlanWizardId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("StartDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("PlanWizardId");
|
||||||
|
|
||||||
|
b.ToTable("Mnt_T_PlanWizardEmployee", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -12024,13 +12061,16 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Strategy")
|
b.Property<string>("Strategy")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("TargetLocationId")
|
b.Property<string>("TargetLocationId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("TargetZoneId")
|
b.Property<string>("TargetZoneId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -12471,8 +12511,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("RequestId")
|
b.Property<Guid>("RequestId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("RequestTitle")
|
b.Property<string>("RequestTitle")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -12520,6 +12560,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasIndex("PaymentTermId");
|
b.HasIndex("PaymentTermId");
|
||||||
|
|
||||||
|
b.HasIndex("RequestId");
|
||||||
|
|
||||||
b.HasIndex("RequestTypeId");
|
b.HasIndex("RequestTypeId");
|
||||||
|
|
||||||
b.HasIndex("StatusId");
|
b.HasIndex("StatusId");
|
||||||
|
|
@ -13166,7 +13208,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("RequestNumber")
|
b.Property<string>("RequestNumber")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("RequestTypeId")
|
b.Property<string>("RequestTypeId")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -14209,7 +14253,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Type")
|
b.Property<string>("Type")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -14276,7 +14321,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Route")
|
b.Property<string>("Route")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -14679,13 +14725,15 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("PollQuestion")
|
b.Property<string>("PollQuestion")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<int?>("PollTotalVotes")
|
b.Property<int?>("PollTotalVotes")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("PollUserVoteId")
|
b.Property<string>("PollUserVoteId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid>("SocialPostId")
|
b.Property<Guid>("SocialPostId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -15188,7 +15236,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("Value")
|
b.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -15939,7 +15988,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("BadgeNumber")
|
b.Property<string>("BadgeNumber")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<DateTime?>("CheckIn")
|
b.Property<DateTime?>("CheckIn")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
@ -15999,7 +16049,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("Photo")
|
b.Property<string>("Photo")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(300)
|
||||||
|
.HasColumnType("nvarchar(300)");
|
||||||
|
|
||||||
b.Property<string>("Purpose")
|
b.Property<string>("Purpose")
|
||||||
.HasMaxLength(250)
|
.HasMaxLength(250)
|
||||||
|
|
@ -17346,9 +17397,6 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
|
||||||
.HasColumnType("nvarchar(max)");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
.HasColumnName("CreationTime");
|
.HasColumnName("CreationTime");
|
||||||
|
|
@ -17618,7 +17666,8 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("LastPostUserName")
|
b.Property<string>("LastPostUserName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -21253,17 +21302,6 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Template");
|
b.Navigation("Template");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanEmployee", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
|
||||||
.WithMany("Employees")
|
|
||||||
.HasForeignKey("PlanWizardId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("PlanWizard");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizard", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
b.HasOne("Erp.Platform.Entities.Workcenter", "Workcenter")
|
||||||
|
|
@ -21275,6 +21313,17 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Workcenter");
|
b.Navigation("Workcenter");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardEmployee", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
|
.WithMany("Employees")
|
||||||
|
.HasForeignKey("PlanWizardId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PlanWizard");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.PlanWizardMaterial", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
b.HasOne("Erp.Platform.Entities.PlanWizard", "PlanWizard")
|
||||||
|
|
@ -21696,6 +21745,12 @@ namespace Erp.Platform.Migrations
|
||||||
.OnDelete(DeleteBehavior.Restrict)
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Erp.Platform.Entities.Request", "Request")
|
||||||
|
.WithMany("Quotations")
|
||||||
|
.HasForeignKey("RequestId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.RequestType", "RequestType")
|
b.HasOne("Erp.Platform.Entities.RequestType", "RequestType")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("RequestTypeId")
|
.HasForeignKey("RequestTypeId")
|
||||||
|
|
@ -21720,6 +21775,8 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.Navigation("PaymentTerm");
|
b.Navigation("PaymentTerm");
|
||||||
|
|
||||||
|
b.Navigation("Request");
|
||||||
|
|
||||||
b.Navigation("RequestType");
|
b.Navigation("RequestType");
|
||||||
|
|
||||||
b.Navigation("Status");
|
b.Navigation("Status");
|
||||||
|
|
@ -23004,6 +23061,8 @@ namespace Erp.Platform.Migrations
|
||||||
b.Navigation("Items");
|
b.Navigation("Items");
|
||||||
|
|
||||||
b.Navigation("PurchaseOrders");
|
b.Navigation("PurchaseOrders");
|
||||||
|
|
||||||
|
b.Navigation("Quotations");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.RequestType", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.RequestType", b =>
|
||||||
|
|
|
||||||
|
|
@ -2133,8 +2133,8 @@
|
||||||
"WorkHours": [
|
"WorkHours": [
|
||||||
{
|
{
|
||||||
"Name": "00:00-23:59",
|
"Name": "00:00-23:59",
|
||||||
"StartHour": "1970-01-01T00:00:00",
|
"StartTime": "1970-01-01T00:00:00",
|
||||||
"EndHour": "1970-01-01T23:59:59",
|
"EndTime": "1970-01-01T23:59:59",
|
||||||
"IsFixed": false,
|
"IsFixed": false,
|
||||||
"Monday": true,
|
"Monday": true,
|
||||||
"Tuesday": true,
|
"Tuesday": true,
|
||||||
|
|
|
||||||
|
|
@ -835,8 +835,8 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
await _workHourRepository.InsertAsync(new()
|
await _workHourRepository.InsertAsync(new()
|
||||||
{
|
{
|
||||||
Name = item.Name,
|
Name = item.Name,
|
||||||
StartHour = item.StartHour,
|
StartTime = item.StartTime,
|
||||||
EndHour = item.EndHour,
|
EndTime = item.EndTime,
|
||||||
Monday = item.Monday,
|
Monday = item.Monday,
|
||||||
Tuesday = item.Tuesday,
|
Tuesday = item.Tuesday,
|
||||||
Wednesday = item.Wednesday,
|
Wednesday = item.Wednesday,
|
||||||
|
|
|
||||||
|
|
@ -1434,8 +1434,8 @@ public class VaccineSeedDto
|
||||||
public class WorkHourSeedDto
|
public class WorkHourSeedDto
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public DateTime StartHour { get; set; }
|
public DateTime StartTime { get; set; }
|
||||||
public DateTime EndHour { get; set; }
|
public DateTime EndTime { get; set; }
|
||||||
public bool? IsFixed { get; set; }
|
public bool? IsFixed { get; set; }
|
||||||
public bool? Monday { get; set; }
|
public bool? Monday { get; set; }
|
||||||
public bool? Tuesday { get; set; }
|
public bool? Tuesday { get; set; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue