Entity IsRequired ve HasMaxLength güncellemesi
This commit is contained in:
parent
b3ba87a8fa
commit
b64cdf8b86
26 changed files with 771 additions and 470 deletions
|
|
@ -1,40 +1,18 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class Bank : FullAuditedEntity<Guid>
|
public class Bank : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
[MaxLength(256)]
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
[MaxLength(64)]
|
|
||||||
public string IdentifierCode { get; set; }
|
public string IdentifierCode { get; set; }
|
||||||
|
|
||||||
// Adres alanları
|
|
||||||
[MaxLength(256)]
|
|
||||||
public string AddressLine1 { get; set; }
|
public string AddressLine1 { get; set; }
|
||||||
|
|
||||||
[MaxLength(256)]
|
|
||||||
public string AddressLine2 { get; set; }
|
public string AddressLine2 { get; set; }
|
||||||
|
|
||||||
[MaxLength(128)]
|
|
||||||
public string District { get; set; }
|
public string District { get; set; }
|
||||||
|
|
||||||
[MaxLength(128)]
|
|
||||||
public string City { get; set; }
|
public string City { get; set; }
|
||||||
|
|
||||||
[MaxLength(16)]
|
|
||||||
public string PostalCode { get; set; }
|
public string PostalCode { get; set; }
|
||||||
|
|
||||||
[MaxLength(128)]
|
|
||||||
public string Country { get; set; }
|
public string Country { get; set; }
|
||||||
|
|
||||||
[MaxLength(64)]
|
|
||||||
public string Phone { get; set; }
|
public string Phone { get; set; }
|
||||||
|
|
||||||
[MaxLength(128)]
|
|
||||||
public string Email { get; set; }
|
public string Email { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -1,26 +1,16 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class BankAccount : FullAuditedEntity<Guid>
|
public class BankAccount : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
[MaxLength(64)]
|
|
||||||
public string AccountNumber { get; set; }
|
public string AccountNumber { get; set; }
|
||||||
|
|
||||||
public Guid BankId { get; set; }
|
public Guid BankId { get; set; }
|
||||||
public Bank Bank { get; set; }
|
public Bank Bank { get; set; }
|
||||||
|
|
||||||
[MaxLength(256)]
|
|
||||||
public string AccountOwner { get; set; }
|
public string AccountOwner { get; set; }
|
||||||
|
|
||||||
public Guid? CurrencyId { get; set; } // Currency entity'sine referans
|
public Guid? CurrencyId { get; set; } // Currency entity'sine referans
|
||||||
public Currency Currency { get; set; }
|
public Currency Currency { get; set; }
|
||||||
|
|
||||||
public bool CanTransferMoney { get; set; }
|
public bool CanTransferMoney { get; set; }
|
||||||
|
|
||||||
[MaxLength(256)]
|
|
||||||
public string Company { get; set; }
|
public string Company { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -1,12 +1,8 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
public class ContactTag : FullAuditedEntity<Guid>
|
public class ContactTag : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required, MaxLength(128)]
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
[MaxLength(128)]
|
|
||||||
public string Category { get; set; }
|
public string Category { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,8 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
public class ContactTitle : FullAuditedEntity<Guid>
|
public class ContactTitle : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required, MaxLength(128)]
|
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
||||||
[MaxLength(64)]
|
|
||||||
public string Abbreviation { get; set; }
|
public string Abbreviation { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,20 +6,10 @@ namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class Currency : FullAuditedEntity<Guid>
|
public class Currency : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
[MaxLength(8)]
|
|
||||||
public string Code { get; set; } // TRY, USD, EUR
|
public string Code { get; set; } // TRY, USD, EUR
|
||||||
|
|
||||||
[MaxLength(8)]
|
|
||||||
public string Symbol { get; set; } // ₺, $, etc.
|
public string Symbol { get; set; } // ₺, $, etc.
|
||||||
|
|
||||||
[Required]
|
|
||||||
[MaxLength(128)]
|
|
||||||
public string Name { get; set; } // Turkish lira, US dollar, ...
|
public string Name { get; set; } // Turkish lira, US dollar, ...
|
||||||
|
|
||||||
public decimal Rate { get; set; } // TRY başına değer
|
public decimal Rate { get; set; } // TRY başına değer
|
||||||
|
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
|
|
||||||
public DateTime? LastUpdated { get; set; }
|
public DateTime? LastUpdated { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,10 @@
|
||||||
using System;
|
using System;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class Sector : FullAuditedEntity<Guid>
|
public class Sector : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
[MaxLength(128)]
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
[MaxLength(256)]
|
|
||||||
public string FullName { get; set; }
|
public string FullName { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -6,9 +6,6 @@ namespace Kurs.Platform.Entities;
|
||||||
public class Skill : FullAuditedEntity<Guid>
|
public class Skill : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
public Guid SkillTypeId { get; set; }
|
public Guid SkillTypeId { get; set; }
|
||||||
|
|
||||||
public SkillType SkillType { get; set; }
|
public SkillType SkillType { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -6,11 +6,8 @@ namespace Kurs.Platform.Entities;
|
||||||
public class SkillLevel : FullAuditedEntity<Guid>
|
public class SkillLevel : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
public int Progress { get; set; }
|
public int Progress { get; set; }
|
||||||
public bool IsDefault { get; set; }
|
public bool IsDefault { get; set; }
|
||||||
|
|
||||||
public Guid SkillTypeId { get; set; }
|
public Guid SkillTypeId { get; set; }
|
||||||
|
|
||||||
public SkillType SkillType { get; set; }
|
public SkillType SkillType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class SkillType : FullAuditedEntity<Guid>
|
public class SkillType : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ public class UomCategory : FullAuditedEntity<Guid>
|
||||||
|
|
||||||
protected UomCategory() { }
|
protected UomCategory() { }
|
||||||
|
|
||||||
public UomCategory(Guid id, string name): base(id)
|
public UomCategory(Guid id, string name) : base(id)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = name;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities
|
namespace Kurs.Platform.Entities
|
||||||
{
|
{
|
||||||
public class ReportCategory : FullAuditedEntity<Guid>
|
public class ReportCategory : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public string Icon { get; set; }
|
public string Icon { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -7,19 +7,11 @@ namespace Kurs.Platform.Entities
|
||||||
public class ReportGenerated : FullAuditedEntity<Guid>
|
public class ReportGenerated : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
public Guid? TemplateId { get; set; }
|
public Guid? TemplateId { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
[StringLength(256)]
|
|
||||||
public string TemplateName { get; set; }
|
public string TemplateName { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string GeneratedContent { get; set; }
|
public string GeneratedContent { get; set; }
|
||||||
|
public string Parameters { get; set; }
|
||||||
public string Parameters { get; set; } // JSON string for parameters
|
|
||||||
|
|
||||||
public DateTime GeneratedAt { get; set; }
|
public DateTime GeneratedAt { get; set; }
|
||||||
|
|
||||||
// Navigation property
|
|
||||||
public virtual ReportTemplate Template { get; set; }
|
public virtual ReportTemplate Template { get; set; }
|
||||||
|
|
||||||
public ReportGenerated()
|
public ReportGenerated()
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@ namespace Kurs.Platform.Entities
|
||||||
public class ReportParameter : FullAuditedEntity<Guid>
|
public class ReportParameter : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
public Guid ReportTemplateId { get; set; }
|
public Guid ReportTemplateId { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Placeholder { get; set; }
|
public string Placeholder { get; set; }
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,11 @@ namespace Kurs.Platform.Entities
|
||||||
{
|
{
|
||||||
public class ReportTemplate : FullAuditedEntity<Guid>
|
public class ReportTemplate : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string HtmlContent { get; set; }
|
public string HtmlContent { get; set; }
|
||||||
public string CategoryName { get; set; }
|
public string CategoryName { get; set; }
|
||||||
public string Tags { get; set; } // JSON string array
|
public string Tags { get; set; }
|
||||||
|
|
||||||
public ReportCategory ReportCategory { get; set; }
|
public ReportCategory ReportCategory { get; set; }
|
||||||
public ICollection<ReportParameter> Parameters { get; set; }
|
public ICollection<ReportParameter> Parameters { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Kurs.Platform.Enums;
|
using Kurs.Platform.Enums;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
|
|
@ -7,21 +6,12 @@ namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class BackgroundWorker : FullAuditedEntity<Guid>
|
public class BackgroundWorker : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[Required]
|
|
||||||
[StringLength(100)]
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
[Required]
|
|
||||||
[StringLength(50)]
|
|
||||||
public string Cron { get; set; }
|
public string Cron { get; set; }
|
||||||
/// <summary>PlatformConsts.WorkerTypes</summary>
|
public WorkerTypeEnum WorkerType { get; set; }
|
||||||
[Required]
|
|
||||||
public WorkerTypeEnum WorkerType { get; set; } //MailQueue, Sql
|
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
[StringLength(50)]
|
|
||||||
public string DataSourceCode { get; set; }
|
public string DataSourceCode { get; set; }
|
||||||
[StringLength(100)]
|
|
||||||
public string BeforeSp { get; set; }
|
public string BeforeSp { get; set; }
|
||||||
[StringLength(100)]
|
|
||||||
public string AfterSp { get; set; }
|
public string AfterSp { get; set; }
|
||||||
public string Options { get; set; }
|
public string Options { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Kurs.Platform.Enums;
|
using Kurs.Platform.Enums;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
|
|
@ -7,9 +6,7 @@ namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class DataSource : FullAuditedEntity<Guid>
|
public class DataSource : FullAuditedEntity<Guid>
|
||||||
{
|
{
|
||||||
[StringLength(50)]
|
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
public DataSourceTypeEnum DataSourceType { get; set; }
|
public DataSourceTypeEnum DataSourceType { get; set; }
|
||||||
[StringLength(200)]
|
|
||||||
public string ConnectionString { get; set; }
|
public string ConnectionString { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,7 @@ public class GlobalSearch : Entity<int>, IMultiTenant
|
||||||
{
|
{
|
||||||
public virtual Guid? TenantId { get; protected set; }
|
public virtual Guid? TenantId { get; protected set; }
|
||||||
|
|
||||||
[StringLength(50)]
|
|
||||||
public string System { get; set; } // KIM, ETA, vb.
|
public string System { get; set; } // KIM, ETA, vb.
|
||||||
[StringLength(50)]
|
|
||||||
public string Group { get; set; } // Musteri, Desen, vb.
|
public string Group { get; set; } // Musteri, Desen, vb.
|
||||||
public string Term { get; set; } // Aranacak terim
|
public string Term { get; set; } // Aranacak terim
|
||||||
public string Weight { get; set; } // Aranacak terimin ağırlığı.
|
public string Weight { get; set; } // Aranacak terimin ağırlığı.
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,4 @@ public class IpRestriction : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public string ResourceType { get; set; }
|
public string ResourceType { get; set; }
|
||||||
public string ResourceId { get; set; }
|
public string ResourceId { get; set; }
|
||||||
public string IP { get; set; }
|
public string IP { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -168,12 +168,82 @@ public class PlatformDbContext :
|
||||||
builder.Entity<ListForm>(b =>
|
builder.Entity<ListForm>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ListForm), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ListForm), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention(); //auto configure for the base class props
|
b.ConfigureByConvention(); // base class props
|
||||||
//b.HasIndex(x => x.ListFormCode); //TODO: Should be non-unique index
|
|
||||||
|
|
||||||
//b.Property(a => a.KeyFieldDbSourceType).HasDefaultValue(16);
|
// Anahtar
|
||||||
|
b.HasKey(x => x.Id);
|
||||||
|
|
||||||
|
// Özellikler
|
||||||
|
b.Property(a => a.ListFormCode).IsRequired().HasMaxLength(64);
|
||||||
|
b.Property(a => a.CultureName).HasMaxLength(10);
|
||||||
|
b.Property(a => a.DataSourceCode).HasMaxLength(100);
|
||||||
|
b.Property(a => a.TableName).HasMaxLength(128);
|
||||||
b.Property(a => a.KeyFieldName).HasMaxLength(50);
|
b.Property(a => a.KeyFieldName).HasMaxLength(50);
|
||||||
b.Property(a => a.PageSize).HasDefaultValue(10);
|
b.Property(a => a.Name).HasMaxLength(128);
|
||||||
|
b.Property(a => a.Description).HasMaxLength(512);
|
||||||
|
b.Property(a => a.Title).HasMaxLength(256);
|
||||||
|
b.Property(a => a.SortMode).HasMaxLength(20);
|
||||||
|
b.Property(a => a.PageSize).HasDefaultValue(20);
|
||||||
|
b.Property(a => a.UpdateServiceAddress).HasMaxLength(256);
|
||||||
|
b.Property(a => a.InsertServiceAddress).HasMaxLength(256);
|
||||||
|
b.Property(a => a.DeleteServiceAddress).HasMaxLength(256);
|
||||||
|
b.Property(a => a.UserId).HasMaxLength(256);
|
||||||
|
b.Property(a => a.RoleId).HasMaxLength(256);
|
||||||
|
b.Property(a => a.ListFormType).HasMaxLength(20);
|
||||||
|
|
||||||
|
// Uzun JSON alanları için nvarchar(max)
|
||||||
|
b.Property(a => a.SelectCommand).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.SelectFieldsDefaultValueJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.DefaultFilter).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ColumnOptionJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.PivotOptionJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.FilterRowJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.HeaderFilterJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.FilterPanelJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.SearchPanelJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.GroupPanelJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.SelectionJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.PagerOptionJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.EditingOptionJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.EditingFormJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.PermissionJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.InsertFieldsDefaultValueJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.UpdateFieldsDefaultValueJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.DeleteFieldsDefaultValueJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CommandColumnJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.StateStoringJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.DeleteCommand).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.UpdateCommand).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.InsertCommand).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CustomJsSourcesJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CustomStyleSourcesJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.FormFieldsDefaultValueJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.SubFormsJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.WidgetsJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ExtraFilterJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.LayoutJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CommonJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.DataSourceJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.AdaptiveLayoutJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.AnimationJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.AnnotationsJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ArgumentAxisJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CommonAnnotationsSettingsJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CommonAxisSettingsJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CommonPaneSettingsJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CommonSeriesSettingsJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CrosshairJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ExportJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.LegendJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.MarginJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.PanesJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ScrollBarJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.SeriesJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.SizeJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.TitleJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.TooltipJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ValueAxisJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ZoomAndPanJson).HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.HasMany<ListFormField>().WithOne().HasForeignKey(x => x.ListFormCode).HasPrincipalKey(x => x.ListFormCode).IsRequired();
|
b.HasMany<ListFormField>().WithOne().HasForeignKey(x => x.ListFormCode).HasPrincipalKey(x => x.ListFormCode).IsRequired();
|
||||||
b.HasMany<ListFormCustomization>().WithOne().HasForeignKey(x => x.ListFormCode).HasPrincipalKey(x => x.ListFormCode).IsRequired();
|
b.HasMany<ListFormCustomization>().WithOne().HasForeignKey(x => x.ListFormCode).HasPrincipalKey(x => x.ListFormCode).IsRequired();
|
||||||
|
|
@ -184,19 +254,60 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ListFormField), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ListFormField), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
// Anahtar
|
||||||
|
b.HasKey(x => x.Id);
|
||||||
|
|
||||||
|
// Zorunlu alanlar
|
||||||
|
b.Property(a => a.ListFormCode).IsRequired().HasMaxLength(64);
|
||||||
|
b.Property(a => a.UserId).HasMaxLength(256);
|
||||||
|
b.Property(a => a.RoleId).HasMaxLength(256);
|
||||||
|
b.Property(a => a.CultureName).HasMaxLength(10);
|
||||||
|
b.Property(a => a.FieldName).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(a => a.CaptionName).HasMaxLength(200);
|
||||||
|
|
||||||
|
// Varsayılan değerler
|
||||||
b.Property(a => a.AllowSearch).HasDefaultValue(false);
|
b.Property(a => a.AllowSearch).HasDefaultValue(false);
|
||||||
b.Property(a => a.IsActive).HasDefaultValue(true);
|
b.Property(a => a.IsActive).HasDefaultValue(true);
|
||||||
b.Property(a => a.Visible).HasDefaultValue(true);
|
b.Property(a => a.Visible).HasDefaultValue(true);
|
||||||
b.Property(a => a.ListOrderNo).HasDefaultValue(30);
|
b.Property(a => a.ListOrderNo).HasDefaultValue(30);
|
||||||
b.Property(a => a.FieldName).HasMaxLength(100);
|
|
||||||
b.Property(a => a.Width).HasDefaultValue(100);
|
b.Property(a => a.Width).HasDefaultValue(100);
|
||||||
b.Property(a => a.SourceDbType).HasDefaultValue(System.Data.DbType.String).HasSentinel(System.Data.DbType.AnsiString);
|
b.Property(a => a.SortDirection).HasMaxLength(10);
|
||||||
|
b.Property(a => a.BandName).HasMaxLength(128);
|
||||||
|
|
||||||
|
// JSON alanlar
|
||||||
|
b.Property(a => a.ColumnFilterJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ColumnHeaderJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.GroupingJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ColumnCustomizationJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.TotalSummaryJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.GroupSummaryJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.JoinTableJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.EditingJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.LookupJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ValidationRuleJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.ColumnStylingJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.PermissionJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.PivotSettingsJson).HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
// Stil ve format
|
||||||
|
b.Property(a => a.ColumnCssClass).HasMaxLength(100);
|
||||||
|
b.Property(a => a.ColumnCssValue).HasMaxLength(256);
|
||||||
|
b.Property(a => a.Alignment).HasMaxLength(20).HasDefaultValue("left");
|
||||||
|
b.Property(a => a.Format).HasMaxLength(100);
|
||||||
|
b.Property(a => a.EditorOptions).HasColumnType("nvarchar(max)");
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<ListFormCustomization>(b =>
|
builder.Entity<ListFormCustomization>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ListFormCustomization), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ListFormCustomization), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(a => a.ListFormCode).IsRequired().HasMaxLength(64);
|
||||||
|
b.Property(a => a.UserId).HasMaxLength(256);
|
||||||
|
b.Property(a => a.RoleId).HasMaxLength(256);
|
||||||
|
b.Property(a => a.FilterName).HasMaxLength(128);
|
||||||
|
b.Property(a => a.CustomizationData).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.CustomizationType).IsRequired();
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Menu>(b =>
|
builder.Entity<Menu>(b =>
|
||||||
|
|
@ -204,12 +315,12 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Menu), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Menu), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(a => a.Code).HasMaxLength(100).IsRequired();
|
b.Property(a => a.Code).IsRequired().HasMaxLength(100);
|
||||||
b.Property(a => a.DisplayName).HasMaxLength(100).IsRequired();
|
b.Property(a => a.DisplayName).IsRequired().HasMaxLength(100);
|
||||||
b.Property(a => a.Url).HasMaxLength(100);
|
b.Property(a => a.Url).HasMaxLength(250);
|
||||||
b.Property(a => a.Icon).HasMaxLength(50);
|
b.Property(a => a.Icon).HasMaxLength(50);
|
||||||
b.Property(a => a.ParentCode).HasMaxLength(50);
|
b.Property(a => a.ParentCode).HasMaxLength(50);
|
||||||
b.Property(a => a.CssClass).HasMaxLength(50);
|
b.Property(a => a.CssClass).HasMaxLength(128);
|
||||||
b.Property(a => a.RequiredPermissionName).HasMaxLength(128);
|
b.Property(a => a.RequiredPermissionName).HasMaxLength(128);
|
||||||
b.Property(a => a.Target).HasMaxLength(50);
|
b.Property(a => a.Target).HasMaxLength(50);
|
||||||
b.Property(a => a.ElementId).HasMaxLength(50);
|
b.Property(a => a.ElementId).HasMaxLength(50);
|
||||||
|
|
@ -223,54 +334,105 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(IpRestriction), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(IpRestriction), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(a => a.ResourceType).HasMaxLength(10).IsRequired();
|
b.Property(a => a.ResourceType).IsRequired().HasMaxLength(10);
|
||||||
b.Property(a => a.ResourceId).HasMaxLength(32);
|
b.Property(a => a.ResourceId).HasMaxLength(32);
|
||||||
b.Property(a => a.IP).HasMaxLength(32).IsRequired();
|
b.Property(a => a.IP).IsRequired().HasMaxLength(32);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<DataSource>(b =>
|
builder.Entity<DataSource>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(DataSource), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(DataSource), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention(); //auto configure for the base class props
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(a => a.Code).HasMaxLength(100).IsRequired();
|
b.Property(a => a.Code).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(a => a.ConnectionString).HasMaxLength(256);
|
||||||
|
b.Property(a => a.DataSourceType).IsRequired();
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<BackgroundWorker>(b =>
|
builder.Entity<BackgroundWorker>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(BackgroundWorker), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(BackgroundWorker), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention(); //auto configure for the base class props
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(a => a.Name).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(a => a.Cron).IsRequired().HasMaxLength(50);
|
||||||
|
b.Property(a => a.WorkerType).IsRequired();
|
||||||
|
b.Property(a => a.IsActive).HasDefaultValue(true);
|
||||||
|
b.Property(a => a.DataSourceCode).HasMaxLength(50);
|
||||||
|
b.Property(a => a.BeforeSp).HasMaxLength(100);
|
||||||
|
b.Property(a => a.AfterSp).HasMaxLength(100);
|
||||||
|
b.Property(a => a.Options).HasColumnType("nvarchar(max)");
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<CustomEndpoint>(b =>
|
builder.Entity<CustomEndpoint>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(CustomEndpoint), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(CustomEndpoint), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(a => a.Name).IsRequired().HasMaxLength(128);
|
||||||
|
b.Property(a => a.Description).HasMaxLength(512);
|
||||||
|
b.Property(a => a.Url).IsRequired().HasMaxLength(256);
|
||||||
|
b.Property(a => a.Method).IsRequired().HasMaxLength(10);
|
||||||
|
b.Property(a => a.DataSourceCode).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(a => a.Sql).IsRequired();
|
||||||
|
b.Property(a => a.ParametersJson).HasColumnType("nvarchar(max)");
|
||||||
|
b.Property(a => a.PermissionsJson).HasColumnType("nvarchar(max)");
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<GlobalSearch>(b =>
|
builder.Entity<GlobalSearch>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(GlobalSearch), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(GlobalSearch), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(a => a.System).HasMaxLength(50);
|
||||||
|
b.Property(a => a.Group).HasMaxLength(50);
|
||||||
|
b.Property(a => a.Term).IsRequired().HasMaxLength(256);
|
||||||
|
b.Property(a => a.Weight).HasMaxLength(50);
|
||||||
|
b.Property(a => a.Url).HasMaxLength(512);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<AiBot>(b =>
|
builder.Entity<AiBot>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(AiBot), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(AiBot), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(a => a.BotName).IsRequired().HasMaxLength(128);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Branch>(b =>
|
builder.Entity<Branch>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Branch), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Branch), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(a => a.TenantId).IsRequired();
|
||||||
|
b.Property(a => a.Code).IsRequired().HasMaxLength(64);
|
||||||
|
b.Property(a => a.Name).IsRequired().HasMaxLength(128);
|
||||||
|
b.Property(a => a.VknTckn).IsRequired();
|
||||||
|
b.Property(a => a.TaxOffice).HasMaxLength(128);
|
||||||
|
b.Property(a => a.Country).HasMaxLength(128);
|
||||||
|
b.Property(a => a.City).HasMaxLength(128);
|
||||||
|
b.Property(a => a.District).HasMaxLength(128);
|
||||||
|
b.Property(a => a.Street).HasMaxLength(256);
|
||||||
|
b.Property(a => a.Address).HasMaxLength(512);
|
||||||
|
b.Property(a => a.Address2).HasMaxLength(512);
|
||||||
|
b.Property(a => a.PostalCode).HasMaxLength(16);
|
||||||
|
b.Property(a => a.Phone).HasMaxLength(20);
|
||||||
|
b.Property(a => a.Mobile).IsRequired().HasMaxLength(20);
|
||||||
|
b.Property(a => a.Fax).HasMaxLength(20);
|
||||||
|
b.Property(a => a.Email).HasMaxLength(128);
|
||||||
|
b.Property(a => a.Website).HasMaxLength(128);
|
||||||
|
b.Property(a => a.IsActive).HasDefaultValue(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<BranchUsers>(b =>
|
builder.Entity<BranchUsers>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(BranchUsers), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(BranchUsers), PlatformConsts.DbSchema);
|
||||||
b.HasKey(x => new { x.UserId, x.BranchId });
|
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.HasKey(x => new { x.UserId, x.BranchId });
|
||||||
|
b.Property(a => a.UserId).IsRequired();
|
||||||
|
b.Property(a => a.BranchId).IsRequired();
|
||||||
|
b.Property(a => a.TenantId);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Sector>(b =>
|
builder.Entity<Sector>(b =>
|
||||||
|
|
@ -287,12 +449,9 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(UomCategory), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(UomCategory), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name)
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(128);
|
|
||||||
|
|
||||||
b.HasIndex(x => x.Name)
|
b.HasIndex(x => x.Name).IsUnique();
|
||||||
.IsUnique();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Uom>(b =>
|
builder.Entity<Uom>(b =>
|
||||||
|
|
@ -301,17 +460,10 @@ public class PlatformDbContext :
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(64);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(64);
|
||||||
|
b.Property(x => x.Type).IsRequired().HasConversion<string>().HasMaxLength(32);
|
||||||
b.Property(x => x.Type)
|
|
||||||
.HasConversion<string>()
|
|
||||||
.HasMaxLength(32)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Property(x => x.Ratio).HasPrecision(18, 6);
|
b.Property(x => x.Ratio).HasPrecision(18, 6);
|
||||||
b.Property(x => x.Rounding).HasPrecision(18, 6);
|
b.Property(x => x.Rounding).HasPrecision(18, 6);
|
||||||
|
b.Property(x => x.UomCategoryId).IsRequired();
|
||||||
b.Property(x => x.UomCategoryId)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne(x => x.UomCategory)
|
b.HasOne(x => x.UomCategory)
|
||||||
.WithMany(x => x.Uoms)
|
.WithMany(x => x.Uoms)
|
||||||
|
|
@ -328,8 +480,8 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Code).IsRequired().HasMaxLength(8);
|
b.Property(x => x.Code).IsRequired().HasMaxLength(8);
|
||||||
b.Property(x => x.Symbol).HasMaxLength(8);
|
b.Property(x => x.Symbol).HasMaxLength(8);
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Rate).HasColumnType("decimal(18,6)");
|
b.Property(x => x.Rate).HasPrecision(18, 6);
|
||||||
b.Property(x => x.IsActive);
|
b.Property(x => x.IsActive).HasDefaultValue(true);
|
||||||
b.Property(x => x.LastUpdated);
|
b.Property(x => x.LastUpdated);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -339,6 +491,15 @@ public class PlatformDbContext :
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
|
b.Property(x => x.IdentifierCode).HasMaxLength(64);
|
||||||
|
b.Property(x => x.AddressLine1).HasMaxLength(256);
|
||||||
|
b.Property(x => x.AddressLine2).HasMaxLength(256);
|
||||||
|
b.Property(x => x.District).HasMaxLength(128);
|
||||||
|
b.Property(x => x.City).HasMaxLength(128);
|
||||||
|
b.Property(x => x.PostalCode).HasMaxLength(16);
|
||||||
|
b.Property(x => x.Country).HasMaxLength(128);
|
||||||
|
b.Property(x => x.Phone).HasMaxLength(64);
|
||||||
|
b.Property(x => x.Email).HasMaxLength(128);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<BankAccount>(b =>
|
builder.Entity<BankAccount>(b =>
|
||||||
|
|
@ -347,20 +508,30 @@ public class PlatformDbContext :
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.AccountNumber).IsRequired().HasMaxLength(64);
|
b.Property(x => x.AccountNumber).IsRequired().HasMaxLength(64);
|
||||||
b.Property(x => x.BankId).IsRequired();
|
|
||||||
b.Property(x => x.AccountOwner).IsRequired().HasMaxLength(256);
|
b.Property(x => x.AccountOwner).IsRequired().HasMaxLength(256);
|
||||||
|
b.Property(x => x.Company).HasMaxLength(256);
|
||||||
|
|
||||||
|
b.Property(x => x.BankId).IsRequired();
|
||||||
|
b.Property(x => x.CurrencyId);
|
||||||
|
|
||||||
b.HasOne(x => x.Bank)
|
b.HasOne(x => x.Bank)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasPrincipalKey(x => x.Id)
|
.HasPrincipalKey(x => x.Id)
|
||||||
.HasForeignKey(x => x.BankId)
|
.HasForeignKey(x => x.BankId)
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
|
b.HasOne(x => x.Currency)
|
||||||
|
.WithMany()
|
||||||
|
.HasPrincipalKey(x => x.Id)
|
||||||
|
.HasForeignKey(x => x.CurrencyId)
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<CountryGroup>(b =>
|
builder.Entity<CountryGroup>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(CountryGroup), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(CountryGroup), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
b.HasIndex(x => x.Name).IsUnique();
|
b.HasIndex(x => x.Name).IsUnique();
|
||||||
});
|
});
|
||||||
|
|
@ -381,16 +552,16 @@ public class PlatformDbContext :
|
||||||
b.HasIndex(x => x.GroupName);
|
b.HasIndex(x => x.GroupName);
|
||||||
|
|
||||||
b.HasMany(x => x.Cities)
|
b.HasMany(x => x.Cities)
|
||||||
.WithOne(x => x.Country)
|
.WithOne(x => x.Country)
|
||||||
.HasForeignKey(x => x.CountryCode)
|
.HasForeignKey(x => x.CountryCode)
|
||||||
.HasPrincipalKey(x => x.Code)
|
.HasPrincipalKey(x => x.Code)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
|
|
||||||
b.HasOne<CountryGroup>()
|
b.HasOne<CountryGroup>()
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasPrincipalKey(x => x.Name)
|
.HasPrincipalKey(x => x.Name)
|
||||||
.HasForeignKey(x => x.GroupName)
|
.HasForeignKey(x => x.GroupName)
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<City>(b =>
|
builder.Entity<City>(b =>
|
||||||
|
|
@ -406,10 +577,10 @@ public class PlatformDbContext :
|
||||||
b.HasIndex(x => new { x.CountryCode, x.Code }).IsUnique();
|
b.HasIndex(x => new { x.CountryCode, x.Code }).IsUnique();
|
||||||
|
|
||||||
b.HasMany(x => x.Districts)
|
b.HasMany(x => x.Districts)
|
||||||
.WithOne(x => x.City)
|
.WithOne(x => x.City)
|
||||||
.HasForeignKey(x => new { x.CountryCode, x.CityCode })
|
.HasForeignKey(x => new { x.CountryCode, x.CityCode })
|
||||||
.HasPrincipalKey(x => new { x.CountryCode, x.Code })
|
.HasPrincipalKey(x => new { x.CountryCode, x.Code })
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<District>(b =>
|
builder.Entity<District>(b =>
|
||||||
|
|
@ -417,8 +588,9 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(District), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(District), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.CountryCode).HasMaxLength(8);
|
||||||
b.Property(x => x.CityCode).IsRequired().HasMaxLength(16);
|
b.Property(x => x.CityCode).IsRequired().HasMaxLength(16);
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Township).HasMaxLength(128);
|
b.Property(x => x.Township).HasMaxLength(128);
|
||||||
b.Property(x => x.Street).HasMaxLength(256);
|
b.Property(x => x.Street).HasMaxLength(256);
|
||||||
b.Property(x => x.ZipCode).HasMaxLength(16);
|
b.Property(x => x.ZipCode).HasMaxLength(16);
|
||||||
|
|
@ -430,27 +602,29 @@ public class PlatformDbContext :
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(SkillType), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(SkillType), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
|
|
||||||
b.HasIndex(x => x.Name).IsUnique();
|
b.HasIndex(x => x.Name).IsUnique();
|
||||||
|
|
||||||
b.HasMany(x => x.Skills)
|
b.HasMany(x => x.Skills)
|
||||||
.WithOne(x => x.SkillType)
|
.WithOne(x => x.SkillType)
|
||||||
.HasForeignKey(x => new { x.SkillTypeId })
|
.HasForeignKey(x => x.SkillTypeId)
|
||||||
.HasPrincipalKey(x => new { x.Id })
|
.HasPrincipalKey(x => x.Id)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
|
|
||||||
b.HasMany(x => x.Levels)
|
b.HasMany(x => x.Levels)
|
||||||
.WithOne(x => x.SkillType)
|
.WithOne(x => x.SkillType)
|
||||||
.HasForeignKey(x => new { x.SkillTypeId })
|
.HasForeignKey(x => x.SkillTypeId)
|
||||||
.HasPrincipalKey(x => new { x.Id })
|
.HasPrincipalKey(x => x.Id)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Skill>(b =>
|
builder.Entity<Skill>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Skill), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Skill), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.SkillTypeId).IsRequired();
|
b.Property(x => x.SkillTypeId).IsRequired();
|
||||||
});
|
});
|
||||||
|
|
@ -459,16 +633,18 @@ public class PlatformDbContext :
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(SkillLevel), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(SkillLevel), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.SkillTypeId).IsRequired();
|
b.Property(x => x.SkillTypeId).IsRequired();
|
||||||
b.Property(x => x.Progress);
|
b.Property(x => x.Progress).HasDefaultValue(0);
|
||||||
b.Property(x => x.IsDefault);
|
b.Property(x => x.IsDefault).HasDefaultValue(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<ContactTag>(b =>
|
builder.Entity<ContactTag>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ContactTag), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ContactTag), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Category).HasMaxLength(128);
|
b.Property(x => x.Category).HasMaxLength(128);
|
||||||
});
|
});
|
||||||
|
|
@ -477,11 +653,11 @@ public class PlatformDbContext :
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ContactTitle), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ContactTitle), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Title).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Title).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Abbreviation).HasMaxLength(64);
|
b.Property(x => x.Abbreviation).HasMaxLength(64);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Blog Entity Configurations
|
|
||||||
builder.Entity<BlogCategory>(b =>
|
builder.Entity<BlogCategory>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(BlogCategory), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(BlogCategory), PlatformConsts.DbSchema);
|
||||||
|
|
@ -490,6 +666,7 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Slug).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Slug).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Description).HasMaxLength(512);
|
b.Property(x => x.Description).HasMaxLength(512);
|
||||||
|
b.Property(x => x.Icon).HasMaxLength(128);
|
||||||
|
|
||||||
b.HasIndex(x => x.Slug);
|
b.HasIndex(x => x.Slug);
|
||||||
});
|
});
|
||||||
|
|
@ -505,6 +682,7 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.ContentTr).IsRequired();
|
b.Property(x => x.ContentTr).IsRequired();
|
||||||
b.Property(x => x.ContentEn).IsRequired();
|
b.Property(x => x.ContentEn).IsRequired();
|
||||||
b.Property(x => x.CoverImage).HasMaxLength(512);
|
b.Property(x => x.CoverImage).HasMaxLength(512);
|
||||||
|
b.Property(x => x.ReadTime).HasMaxLength(64);
|
||||||
|
|
||||||
b.HasIndex(x => x.Slug);
|
b.HasIndex(x => x.Slug);
|
||||||
b.HasIndex(x => x.IsPublished);
|
b.HasIndex(x => x.IsPublished);
|
||||||
|
|
@ -516,25 +694,24 @@ public class PlatformDbContext :
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Forum Entity Configurations
|
|
||||||
// ForumCategory
|
|
||||||
builder.Entity<ForumCategory>(b =>
|
builder.Entity<ForumCategory>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ForumCategory), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ForumCategory), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
|
b.Property(x => x.Slug).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Description).HasMaxLength(512);
|
b.Property(x => x.Description).HasMaxLength(512);
|
||||||
b.Property(x => x.Icon).HasMaxLength(64);
|
b.Property(x => x.Icon).HasMaxLength(64);
|
||||||
|
|
||||||
b.HasIndex(x => x.DisplayOrder);
|
b.HasIndex(x => x.DisplayOrder);
|
||||||
|
|
||||||
b.HasMany(x => x.Topics)
|
b.HasMany(x => x.Topics)
|
||||||
.WithOne(x => x.Category)
|
.WithOne(x => x.Category)
|
||||||
.HasForeignKey(x => x.CategoryId)
|
.HasForeignKey(x => x.CategoryId)
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
// ForumTopic
|
|
||||||
builder.Entity<ForumTopic>(b =>
|
builder.Entity<ForumTopic>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ForumTopic), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ForumTopic), PlatformConsts.DbSchema);
|
||||||
|
|
@ -542,6 +719,8 @@ public class PlatformDbContext :
|
||||||
|
|
||||||
b.Property(x => x.Title).IsRequired().HasMaxLength(256);
|
b.Property(x => x.Title).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Content).IsRequired();
|
b.Property(x => x.Content).IsRequired();
|
||||||
|
b.Property(x => x.AuthorName).HasMaxLength(128);
|
||||||
|
b.Property(x => x.LastPostUserName).HasMaxLength(128);
|
||||||
|
|
||||||
b.HasIndex(x => x.CategoryId);
|
b.HasIndex(x => x.CategoryId);
|
||||||
b.HasIndex(x => x.IsPinned);
|
b.HasIndex(x => x.IsPinned);
|
||||||
|
|
@ -553,13 +732,13 @@ public class PlatformDbContext :
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
// ForumPost
|
|
||||||
builder.Entity<ForumPost>(b =>
|
builder.Entity<ForumPost>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ForumPost), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ForumPost), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Content).IsRequired();
|
b.Property(x => x.Content).IsRequired();
|
||||||
|
b.Property(x => x.AuthorName).HasMaxLength(128);
|
||||||
|
|
||||||
b.HasIndex(x => x.TopicId);
|
b.HasIndex(x => x.TopicId);
|
||||||
|
|
||||||
|
|
@ -584,6 +763,8 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Key).IsRequired().HasMaxLength(128);
|
b.Property(x => x.Key).IsRequired().HasMaxLength(128);
|
||||||
b.Property(x => x.Path).IsRequired().HasMaxLength(256);
|
b.Property(x => x.Path).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.ComponentPath).IsRequired().HasMaxLength(256);
|
b.Property(x => x.ComponentPath).IsRequired().HasMaxLength(256);
|
||||||
|
b.Property(x => x.RouteType).HasMaxLength(64);
|
||||||
|
|
||||||
b.Property(x => x.Authority).HasConversion(
|
b.Property(x => x.Authority).HasConversion(
|
||||||
v => string.Join(",", v),
|
v => string.Join(",", v),
|
||||||
v => v.Split(',', StringSplitOptions.RemoveEmptyEntries)
|
v => v.Split(',', StringSplitOptions.RemoveEmptyEntries)
|
||||||
|
|
@ -608,7 +789,11 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Description).HasMaxLength(500);
|
b.Property(x => x.Description).HasMaxLength(500);
|
||||||
b.Property(x => x.MigrationStatus).IsRequired().HasMaxLength(50);
|
b.Property(x => x.MigrationStatus).IsRequired().HasMaxLength(50);
|
||||||
b.Property(x => x.EndpointStatus).IsRequired().HasMaxLength(50);
|
b.Property(x => x.EndpointStatus).IsRequired().HasMaxLength(50);
|
||||||
b.HasMany(x => x.Fields).WithOne(x => x.Entity).HasForeignKey(x => x.EntityId);
|
|
||||||
|
b.HasMany(x => x.Fields)
|
||||||
|
.WithOne(x => x.Entity)
|
||||||
|
.HasForeignKey(x => x.EntityId)
|
||||||
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<CustomEntityField>(b =>
|
builder.Entity<CustomEntityField>(b =>
|
||||||
|
|
@ -620,6 +805,7 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(100);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(100);
|
||||||
b.Property(x => x.Type).IsRequired().HasMaxLength(50);
|
b.Property(x => x.Type).IsRequired().HasMaxLength(50);
|
||||||
b.Property(x => x.Description).HasMaxLength(500);
|
b.Property(x => x.Description).HasMaxLength(500);
|
||||||
|
b.Property(x => x.DefaultValue).HasMaxLength(256);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<ApiMigration>(b =>
|
builder.Entity<ApiMigration>(b =>
|
||||||
|
|
@ -632,7 +818,12 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.FileName).IsRequired().HasMaxLength(200);
|
b.Property(x => x.FileName).IsRequired().HasMaxLength(200);
|
||||||
b.Property(x => x.SqlScript).IsRequired();
|
b.Property(x => x.SqlScript).IsRequired();
|
||||||
b.Property(x => x.Status).IsRequired().HasMaxLength(50);
|
b.Property(x => x.Status).IsRequired().HasMaxLength(50);
|
||||||
b.HasOne(x => x.Entity).WithMany().HasForeignKey(x => x.EntityId).IsRequired(false);
|
b.Property(x => x.ErrorMessage).HasMaxLength(1000);
|
||||||
|
|
||||||
|
b.HasOne(x => x.Entity)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey(x => x.EntityId)
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<ApiEndpoint>(b =>
|
builder.Entity<ApiEndpoint>(b =>
|
||||||
|
|
@ -646,7 +837,11 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Path).IsRequired().HasMaxLength(200);
|
b.Property(x => x.Path).IsRequired().HasMaxLength(200);
|
||||||
b.Property(x => x.OperationType).IsRequired().HasMaxLength(50);
|
b.Property(x => x.OperationType).IsRequired().HasMaxLength(50);
|
||||||
b.Property(x => x.CsharpCode).IsRequired();
|
b.Property(x => x.CsharpCode).IsRequired();
|
||||||
b.HasOne(x => x.Entity).WithMany().HasForeignKey(x => x.EntityId);
|
|
||||||
|
b.HasOne(x => x.Entity)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey(x => x.EntityId)
|
||||||
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<CustomComponent>(b =>
|
builder.Entity<CustomComponent>(b =>
|
||||||
|
|
@ -659,6 +854,7 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Code).IsRequired();
|
b.Property(x => x.Code).IsRequired();
|
||||||
b.Property(x => x.Props).HasMaxLength(1000);
|
b.Property(x => x.Props).HasMaxLength(1000);
|
||||||
b.Property(x => x.Description).HasMaxLength(500);
|
b.Property(x => x.Description).HasMaxLength(500);
|
||||||
|
b.Property(x => x.Dependencies).HasMaxLength(2000);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Product>(b =>
|
builder.Entity<Product>(b =>
|
||||||
|
|
@ -675,7 +871,6 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.ImageUrl).HasMaxLength(300);
|
b.Property(x => x.ImageUrl).HasMaxLength(300);
|
||||||
});
|
});
|
||||||
|
|
||||||
// PaymentMethod
|
|
||||||
builder.Entity<PaymentMethod>(b =>
|
builder.Entity<PaymentMethod>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(PaymentMethod), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(PaymentMethod), PlatformConsts.DbSchema);
|
||||||
|
|
@ -687,7 +882,6 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Commission).HasPrecision(5, 3);
|
b.Property(x => x.Commission).HasPrecision(5, 3);
|
||||||
});
|
});
|
||||||
|
|
||||||
// InstallmentOption
|
|
||||||
builder.Entity<InstallmentOption>(b =>
|
builder.Entity<InstallmentOption>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(InstallmentOption), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(InstallmentOption), PlatformConsts.DbSchema);
|
||||||
|
|
@ -695,7 +889,7 @@ public class PlatformDbContext :
|
||||||
|
|
||||||
b.HasKey(x => x.Id);
|
b.HasKey(x => x.Id);
|
||||||
b.Property(x => x.Name).IsRequired().HasMaxLength(32);
|
b.Property(x => x.Name).IsRequired().HasMaxLength(32);
|
||||||
b.Property(x => x.Commission).HasPrecision(5, 3); // örn. %0.275 gibi değerler için
|
b.Property(x => x.Commission).HasPrecision(5, 3);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<Order>(b =>
|
builder.Entity<Order>(b =>
|
||||||
|
|
@ -703,17 +897,28 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Order), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Order), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(o => o.OrganizationName).HasMaxLength(128);
|
||||||
|
b.Property(o => o.Founder).HasMaxLength(128);
|
||||||
|
b.Property(o => o.TaxOffice).HasMaxLength(128);
|
||||||
|
b.Property(o => o.Address).HasMaxLength(512);
|
||||||
|
b.Property(o => o.Address2).HasMaxLength(512);
|
||||||
|
b.Property(o => o.District).HasMaxLength(128);
|
||||||
|
b.Property(o => o.Country).HasMaxLength(128);
|
||||||
|
b.Property(o => o.City).HasMaxLength(128);
|
||||||
|
b.Property(o => o.PostalCode).HasMaxLength(16);
|
||||||
|
b.Property(o => o.Email).HasMaxLength(128);
|
||||||
|
b.Property(o => o.Website).HasMaxLength(128);
|
||||||
|
|
||||||
b.Property(o => o.Subtotal).IsRequired().HasPrecision(18, 2);
|
b.Property(o => o.Subtotal).IsRequired().HasPrecision(18, 2);
|
||||||
b.Property(o => o.Commission).IsRequired().HasPrecision(18, 2);
|
b.Property(o => o.Commission).IsRequired().HasPrecision(18, 2);
|
||||||
b.Property(o => o.Total).IsRequired().HasPrecision(18, 2);
|
b.Property(o => o.Total).IsRequired().HasPrecision(18, 2);
|
||||||
|
|
||||||
b.Property(o => o.PaymentMethod).IsRequired().HasMaxLength(64);
|
b.Property(o => o.PaymentMethod).IsRequired().HasMaxLength(64);
|
||||||
b.Property(o => o.InstallmentName).HasMaxLength(128);
|
b.Property(o => o.InstallmentName).HasMaxLength(128);
|
||||||
b.Property(o => o.PaymentDataJson).HasMaxLength(4000);
|
b.Property(o => o.PaymentDataJson).HasMaxLength(4000);
|
||||||
|
|
||||||
builder.Entity<Order>()
|
b.HasMany(o => o.Items)
|
||||||
.HasMany(o => o.Items)
|
|
||||||
.WithOne(i => i.Order)
|
.WithOne(i => i.Order)
|
||||||
.IsRequired(false)
|
|
||||||
.HasForeignKey(i => i.OrderId)
|
.HasForeignKey(i => i.OrderId)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
@ -746,11 +951,9 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.ImportId).IsRequired();
|
b.Property(x => x.ImportId).IsRequired();
|
||||||
b.Property(x => x.BlobName).IsRequired().HasMaxLength(256);
|
b.Property(x => x.BlobName).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Status).IsRequired().HasMaxLength(64);
|
b.Property(x => x.Status).IsRequired().HasMaxLength(64);
|
||||||
b.Property(x => x.ErrorsJson).HasColumnType("text");
|
b.Property(x => x.ErrorsJson).HasColumnType("nvarchar(max)");
|
||||||
});
|
});
|
||||||
|
|
||||||
// Reports Configuration
|
|
||||||
// Reports Configuration
|
|
||||||
builder.Entity<ReportCategory>(b =>
|
builder.Entity<ReportCategory>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ReportCategory), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ReportCategory), PlatformConsts.DbSchema);
|
||||||
|
|
@ -760,14 +963,13 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Description).HasMaxLength(4000); // JSON string
|
b.Property(x => x.Description).HasMaxLength(4000); // JSON string
|
||||||
b.Property(x => x.Icon).HasMaxLength(64);
|
b.Property(x => x.Icon).HasMaxLength(64);
|
||||||
|
|
||||||
// Primary key dışında Name de ilişki anahtarı olarak kullanılacaksa
|
|
||||||
b.HasIndex(x => x.Name).IsUnique();
|
b.HasIndex(x => x.Name).IsUnique();
|
||||||
|
|
||||||
b.HasMany(x => x.ReportTemplates) // Bir kategori birden çok template içerir
|
b.HasMany(x => x.ReportTemplates)
|
||||||
.WithOne(x => x.ReportCategory) // Template'in bir kategorisi vardır
|
.WithOne(x => x.ReportCategory)
|
||||||
.HasForeignKey(x => x.CategoryName) // Template tarafındaki FK property
|
.HasForeignKey(x => x.CategoryName)
|
||||||
.HasPrincipalKey(c => c.Name) // Category tarafındaki anahtar
|
.HasPrincipalKey(c => c.Name)
|
||||||
.OnDelete(DeleteBehavior.SetNull); // Silindiğinde null bırak
|
.OnDelete(DeleteBehavior.SetNull);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Entity<ReportTemplate>(b =>
|
builder.Entity<ReportTemplate>(b =>
|
||||||
|
|
@ -778,11 +980,8 @@ public class PlatformDbContext :
|
||||||
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(1000);
|
||||||
b.Property(x => x.HtmlContent).IsRequired();
|
b.Property(x => x.HtmlContent).IsRequired();
|
||||||
b.Property(x => x.CategoryName).HasMaxLength(100);
|
|
||||||
b.Property(x => x.Tags).HasMaxLength(2000);
|
|
||||||
|
|
||||||
// Burada CategoryName FK olacak
|
|
||||||
b.Property(x => x.CategoryName).HasMaxLength(256);
|
b.Property(x => x.CategoryName).HasMaxLength(256);
|
||||||
|
b.Property(x => x.Tags).HasMaxLength(2000);
|
||||||
|
|
||||||
b.HasMany(t => t.Parameters)
|
b.HasMany(t => t.Parameters)
|
||||||
.WithOne(p => p.ReportTemplate)
|
.WithOne(p => p.ReportTemplate)
|
||||||
|
|
@ -809,13 +1008,12 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ReportGenerated), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ReportGenerated), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.TemplateId).IsRequired(false); // Nullable yapıyoruz
|
b.Property(x => x.TemplateId).IsRequired(false);
|
||||||
b.Property(x => x.TemplateName).IsRequired().HasMaxLength(256);
|
b.Property(x => x.TemplateName).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.GeneratedContent).IsRequired();
|
b.Property(x => x.GeneratedContent).IsRequired();
|
||||||
b.Property(x => x.Parameters).HasMaxLength(4000); // JSON string
|
b.Property(x => x.Parameters).HasMaxLength(4000); // JSON string
|
||||||
b.Property(x => x.GeneratedAt).IsRequired();
|
b.Property(x => x.GeneratedAt).IsRequired();
|
||||||
|
|
||||||
// Foreign key relationship
|
|
||||||
b.HasOne(x => x.Template)
|
b.HasOne(x => x.Template)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey(x => x.TemplateId)
|
.HasForeignKey(x => x.TemplateId)
|
||||||
|
|
@ -828,7 +1026,7 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Demo), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Demo), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.OrganizationName).IsRequired(true).HasMaxLength(256);
|
b.Property(x => x.OrganizationName).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.FullName).IsRequired().HasMaxLength(256);
|
b.Property(x => x.FullName).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Email).IsRequired().HasMaxLength(256);
|
b.Property(x => x.Email).IsRequired().HasMaxLength(256);
|
||||||
b.Property(x => x.Phone).IsRequired().HasMaxLength(20);
|
b.Property(x => x.Phone).IsRequired().HasMaxLength(20);
|
||||||
|
|
@ -843,10 +1041,7 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Service), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Service), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
b.Property(x => x.Title)
|
b.Property(x => x.Title).IsRequired().HasMaxLength(128);
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(128);
|
|
||||||
|
|
||||||
b.Property(x => x.Description).HasMaxLength(512);
|
b.Property(x => x.Description).HasMaxLength(512);
|
||||||
b.Property(x => x.Icon).HasMaxLength(64);
|
b.Property(x => x.Icon).HasMaxLength(64);
|
||||||
|
|
||||||
|
|
@ -860,7 +1055,7 @@ public class PlatformDbContext :
|
||||||
new ValueComparer<string[]>(
|
new ValueComparer<string[]>(
|
||||||
(a, b) => a.SequenceEqual(b),
|
(a, b) => a.SequenceEqual(b),
|
||||||
a => a.Aggregate(0, (c, v) => HashCode.Combine(c, v.GetHashCode())),
|
a => a.Aggregate(0, (c, v) => HashCode.Combine(c, v.GetHashCode())),
|
||||||
a => a.ToArray() // clone
|
a => a.ToArray()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
@ -870,7 +1065,6 @@ public class PlatformDbContext :
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(About), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(About), PlatformConsts.DbSchema);
|
||||||
b.ConfigureByConvention();
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
// JSON alanlar
|
|
||||||
b.Property(x => x.StatsJson).HasColumnType("nvarchar(max)");
|
b.Property(x => x.StatsJson).HasColumnType("nvarchar(max)");
|
||||||
b.Property(x => x.DescriptionsJson).HasColumnType("nvarchar(max)");
|
b.Property(x => x.DescriptionsJson).HasColumnType("nvarchar(max)");
|
||||||
b.Property(x => x.SectionsJson).HasColumnType("nvarchar(max)");
|
b.Property(x => x.SectionsJson).HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -887,13 +1081,11 @@ public class PlatformDbContext :
|
||||||
b.Property(x => x.Location).HasMaxLength(150);
|
b.Property(x => x.Location).HasMaxLength(150);
|
||||||
b.Property(x => x.TaxNumber).HasMaxLength(50);
|
b.Property(x => x.TaxNumber).HasMaxLength(50);
|
||||||
|
|
||||||
// JSON alanlar nvarchar(max) olarak
|
|
||||||
b.Property(x => x.BankJson).HasColumnType("nvarchar(max)");
|
b.Property(x => x.BankJson).HasColumnType("nvarchar(max)");
|
||||||
b.Property(x => x.WorkHoursJson).HasColumnType("nvarchar(max)");
|
b.Property(x => x.WorkHoursJson).HasColumnType("nvarchar(max)");
|
||||||
b.Property(x => x.MapJson).HasColumnType("nvarchar(max)");
|
b.Property(x => x.MapJson).HasColumnType("nvarchar(max)");
|
||||||
});
|
});
|
||||||
|
|
||||||
// ClassSession
|
|
||||||
builder.Entity<Classroom>(b =>
|
builder.Entity<Classroom>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Classroom), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(Classroom), PlatformConsts.DbSchema);
|
||||||
|
|
@ -907,7 +1099,6 @@ public class PlatformDbContext :
|
||||||
b.HasIndex(x => x.TeacherId);
|
b.HasIndex(x => x.TeacherId);
|
||||||
b.HasIndex(x => x.ScheduledStartTime);
|
b.HasIndex(x => x.ScheduledStartTime);
|
||||||
|
|
||||||
// Relationships
|
|
||||||
b.HasMany(x => x.Participants)
|
b.HasMany(x => x.Participants)
|
||||||
.WithOne(x => x.Session)
|
.WithOne(x => x.Session)
|
||||||
.HasForeignKey(x => x.SessionId)
|
.HasForeignKey(x => x.SessionId)
|
||||||
|
|
@ -924,7 +1115,6 @@ public class PlatformDbContext :
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Participant
|
|
||||||
builder.Entity<ClassroomParticipant>(b =>
|
builder.Entity<ClassroomParticipant>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ClassroomParticipant), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ClassroomParticipant), PlatformConsts.DbSchema);
|
||||||
|
|
@ -940,7 +1130,6 @@ public class PlatformDbContext :
|
||||||
b.HasIndex(x => new { x.SessionId, x.UserId }).IsUnique();
|
b.HasIndex(x => new { x.SessionId, x.UserId }).IsUnique();
|
||||||
});
|
});
|
||||||
|
|
||||||
// AttendanceRecord
|
|
||||||
builder.Entity<ClassroomAttandance>(b =>
|
builder.Entity<ClassroomAttandance>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ClassroomAttandance), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ClassroomAttandance), PlatformConsts.DbSchema);
|
||||||
|
|
@ -953,7 +1142,6 @@ public class PlatformDbContext :
|
||||||
b.HasIndex(x => x.JoinTime);
|
b.HasIndex(x => x.JoinTime);
|
||||||
});
|
});
|
||||||
|
|
||||||
// ChatMessage
|
|
||||||
builder.Entity<ClassroomChat>(b =>
|
builder.Entity<ClassroomChat>(b =>
|
||||||
{
|
{
|
||||||
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ClassroomChat), PlatformConsts.DbSchema);
|
b.ToTable(PlatformConsts.DbTablePrefix + nameof(ClassroomChat), PlatformConsts.DbSchema);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Kurs.Platform.Migrations
|
namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251002102738_Initial")]
|
[Migration("20251002115440_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -709,7 +709,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("BotName")
|
b.Property<string>("BotName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -817,7 +819,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("ErrorMessage")
|
b.Property<string>("ErrorMessage")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("FileName")
|
b.Property<string>("FileName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -891,7 +894,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -1100,7 +1105,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Icon")
|
b.Property<string>("Icon")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -1209,7 +1215,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("ReadTime")
|
b.Property<string>("ReadTime")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("Slug")
|
b.Property<string>("Slug")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -1252,19 +1259,25 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Address")
|
b.Property<string>("Address")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("Address2")
|
b.Property<string>("Address2")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("City")
|
b.Property<string>("City")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
b.Property<string>("Code")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("Country")
|
b.Property<string>("Country")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -1283,16 +1296,21 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("District")
|
b.Property<string>("District")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<string>("Email")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<long?>("Fax")
|
b.Property<long?>("Fax")
|
||||||
|
.HasMaxLength(20)
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<bool?>("IsActive")
|
b.Property<bool?>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -1309,22 +1327,29 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<long>("Mobile")
|
b.Property<long>("Mobile")
|
||||||
|
.HasMaxLength(20)
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<long?>("Phone")
|
b.Property<long?>("Phone")
|
||||||
|
.HasMaxLength(20)
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("PostalCode")
|
b.Property<string>("PostalCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(16)
|
||||||
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<string>("Street")
|
b.Property<string>("Street")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("TaxOffice")
|
b.Property<string>("TaxOffice")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid>("TenantId")
|
b.Property<Guid>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -1333,7 +1358,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Website")
|
b.Property<string>("Website")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -1967,7 +1993,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -1992,6 +2020,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<decimal>("Rate")
|
b.Property<decimal>("Rate")
|
||||||
|
.HasPrecision(18, 6)
|
||||||
.HasColumnType("decimal(18,6)");
|
.HasColumnType("decimal(18,6)");
|
||||||
|
|
||||||
b.Property<string>("Symbol")
|
b.Property<string>("Symbol")
|
||||||
|
|
@ -2029,7 +2058,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("Dependencies")
|
b.Property<string>("Dependencies")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasMaxLength(500)
|
.HasMaxLength(500)
|
||||||
|
|
@ -2084,7 +2114,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("DataSourceCode")
|
b.Property<string>("DataSourceCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -2095,7 +2127,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -2112,10 +2145,14 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("Method")
|
b.Property<string>("Method")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("ParametersJson")
|
b.Property<string>("ParametersJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2124,6 +2161,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("Sql")
|
b.Property<string>("Sql")
|
||||||
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
|
|
@ -2131,7 +2169,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("TenantId");
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Url")
|
b.Property<string>("Url")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -2237,7 +2277,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("DefaultValue")
|
b.Property<string>("DefaultValue")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -2305,8 +2346,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("ConnectionString")
|
b.Property<string>("ConnectionString")
|
||||||
.HasMaxLength(200)
|
.HasMaxLength(256)
|
||||||
.HasColumnType("nvarchar(200)");
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -2437,6 +2478,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(16)");
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<string>("CountryCode")
|
b.Property<string>("CountryCode")
|
||||||
|
.HasMaxLength(8)
|
||||||
.HasColumnType("nvarchar(8)");
|
.HasColumnType("nvarchar(8)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
|
|
@ -2516,13 +2558,17 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("TenantId");
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Term")
|
b.Property<string>("Term")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("Url")
|
b.Property<string>("Url")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("Weight")
|
b.Property<string>("Weight")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -2659,7 +2705,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("CultureName")
|
b.Property<string>("CultureName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<string>("CustomJsSourcesJson")
|
b.Property<string>("CustomJsSourcesJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2668,7 +2715,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("DataSourceCode")
|
b.Property<string>("DataSourceCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("DataSourceJson")
|
b.Property<string>("DataSourceJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2683,7 +2731,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("DeleteServiceAddress")
|
b.Property<string>("DeleteServiceAddress")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -2694,7 +2743,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("EditingFormJson")
|
b.Property<string>("EditingFormJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2733,7 +2783,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("InsertServiceAddress")
|
b.Property<string>("InsertServiceAddress")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<bool>("IsBranch")
|
b.Property<bool>("IsBranch")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -2776,21 +2827,24 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("ListFormCode")
|
b.Property<string>("ListFormCode")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(450)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("ListFormType")
|
b.Property<string>("ListFormType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("MarginJson")
|
b.Property<string>("MarginJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<int>("PageSize")
|
b.Property<int>("PageSize")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasDefaultValue(10);
|
.HasDefaultValue(20);
|
||||||
|
|
||||||
b.Property<string>("PagerOptionJson")
|
b.Property<string>("PagerOptionJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2805,7 +2859,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ScrollBarJson")
|
b.Property<string>("ScrollBarJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2832,7 +2887,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("SortMode")
|
b.Property<string>("SortMode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("StateStoringJson")
|
b.Property<string>("StateStoringJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2841,10 +2897,12 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("TableName")
|
b.Property<string>("TableName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("TitleJson")
|
b.Property<string>("TitleJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2859,10 +2917,12 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("UpdateServiceAddress")
|
b.Property<string>("UpdateServiceAddress")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ValueAxisJson")
|
b.Property<string>("ValueAxisJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2909,7 +2969,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("FilterName")
|
b.Property<string>("FilterName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -2927,13 +2988,16 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("ListFormCode")
|
b.Property<string>("ListFormCode")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(450)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -2948,7 +3012,10 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Alignment")
|
b.Property<string>("Alignment")
|
||||||
.HasColumnType("nvarchar(max)");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)")
|
||||||
|
.HasDefaultValue("left");
|
||||||
|
|
||||||
b.Property<bool?>("AllowSearch")
|
b.Property<bool?>("AllowSearch")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -2956,16 +3023,20 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasDefaultValue(false);
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
b.Property<string>("BandName")
|
b.Property<string>("BandName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("CaptionName")
|
b.Property<string>("CaptionName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
b.Property<string>("ColumnCssClass")
|
b.Property<string>("ColumnCssClass")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("ColumnCssValue")
|
b.Property<string>("ColumnCssValue")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ColumnCustomizationJson")
|
b.Property<string>("ColumnCustomizationJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2988,7 +3059,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("CultureName")
|
b.Property<string>("CultureName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -3005,11 +3077,13 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("FieldName")
|
b.Property<string>("FieldName")
|
||||||
|
.IsRequired()
|
||||||
.HasMaxLength(100)
|
.HasMaxLength(100)
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("Format")
|
b.Property<string>("Format")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("GroupSummaryJson")
|
b.Property<string>("GroupSummaryJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -3041,7 +3115,8 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("ListFormCode")
|
b.Property<string>("ListFormCode")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(450)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<int?>("ListOrderNo")
|
b.Property<int?>("ListOrderNo")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -3058,24 +3133,25 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("SortDirection")
|
b.Property<string>("SortDirection")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<int?>("SortIndex")
|
b.Property<int?>("SortIndex")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("SourceDbType")
|
b.Property<int>("SourceDbType")
|
||||||
.ValueGeneratedOnAdd()
|
.HasColumnType("int");
|
||||||
.HasColumnType("int")
|
|
||||||
.HasDefaultValue(16);
|
|
||||||
|
|
||||||
b.Property<string>("TotalSummaryJson")
|
b.Property<string>("TotalSummaryJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ValidationRuleJson")
|
b.Property<string>("ValidationRuleJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -3185,7 +3261,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("ErrorsJson")
|
b.Property<string>("ErrorsJson")
|
||||||
.HasColumnType("text");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<int>("ExecRows")
|
b.Property<int>("ExecRows")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
@ -3242,8 +3318,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("CssClass")
|
b.Property<string>("CssClass")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(128)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("CultureName")
|
b.Property<string>("CultureName")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
|
|
@ -3307,8 +3383,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Url")
|
b.Property<string>("Url")
|
||||||
.HasMaxLength(100)
|
.HasMaxLength(250)
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(250)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasMaxLength(256)
|
.HasMaxLength(256)
|
||||||
|
|
@ -3325,20 +3401,24 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Address")
|
b.Property<string>("Address")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("Address2")
|
b.Property<string>("Address2")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("City")
|
b.Property<string>("City")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<decimal>("Commission")
|
b.Property<decimal>("Commission")
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("Country")
|
b.Property<string>("Country")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -3357,16 +3437,19 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("District")
|
b.Property<string>("District")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<string>("Email")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<long>("Fax")
|
b.Property<long>("Fax")
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Founder")
|
b.Property<string>("Founder")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("InstallmentName")
|
b.Property<string>("InstallmentName")
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
|
|
@ -3393,7 +3476,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("OrganizationName")
|
b.Property<string>("OrganizationName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("PaymentDataJson")
|
b.Property<string>("PaymentDataJson")
|
||||||
.HasMaxLength(4000)
|
.HasMaxLength(4000)
|
||||||
|
|
@ -3408,14 +3492,16 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("PostalCode")
|
b.Property<string>("PostalCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(16)
|
||||||
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<decimal>("Subtotal")
|
b.Property<decimal>("Subtotal")
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("TaxOffice")
|
b.Property<string>("TaxOffice")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -3429,7 +3515,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Website")
|
b.Property<string>("Website")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -3899,7 +3986,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(256)");
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("RouteType")
|
b.Property<string>("RouteType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -4093,7 +4181,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsDefault")
|
b.Property<bool>("IsDefault")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -4115,7 +4205,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<int>("Progress")
|
b.Property<int>("Progress")
|
||||||
.HasColumnType("int");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
b.Property<Guid>("SkillTypeId")
|
b.Property<Guid>("SkillTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4362,7 +4454,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Slug")
|
b.Property<string>("Slug")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4386,7 +4480,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AuthorName")
|
b.Property<string>("AuthorName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Content")
|
b.Property<string>("Content")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -4455,7 +4550,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AuthorName")
|
b.Property<string>("AuthorName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid>("CategoryId")
|
b.Property<Guid>("CategoryId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4513,7 +4609,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("LastPostUserName")
|
b.Property<string>("LastPostUserName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<int>("LikeCount")
|
b.Property<int>("LikeCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
@ -6478,7 +6575,9 @@ namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity")
|
b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("EntityId");
|
.HasForeignKey("EntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Entity");
|
b.Navigation("Entity");
|
||||||
});
|
});
|
||||||
|
|
@ -6493,7 +6592,8 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.HasOne("Kurs.Platform.Entities.Currency", "Currency")
|
b.HasOne("Kurs.Platform.Entities.Currency", "Currency")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("CurrencyId");
|
.HasForeignKey("CurrencyId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.Navigation("Bank");
|
b.Navigation("Bank");
|
||||||
|
|
||||||
|
|
@ -6612,7 +6712,8 @@ namespace Kurs.Platform.Migrations
|
||||||
b.HasOne("Kurs.Platform.Entities.Order", "Order")
|
b.HasOne("Kurs.Platform.Entities.Order", "Order")
|
||||||
.WithMany("Items")
|
.WithMany("Items")
|
||||||
.HasForeignKey("OrderId")
|
.HasForeignKey("OrderId")
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Order");
|
b.Navigation("Order");
|
||||||
});
|
});
|
||||||
|
|
@ -522,7 +522,7 @@ namespace Kurs.Platform.Migrations
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
BotName = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
BotName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false)
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
|
|
@ -537,7 +537,7 @@ namespace Kurs.Platform.Migrations
|
||||||
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
Cron = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
Cron = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
WorkerType = table.Column<int>(type: "int", nullable: false),
|
WorkerType = table.Column<int>(type: "int", nullable: false),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
DataSourceCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
DataSourceCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
BeforeSp = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
BeforeSp = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
AfterSp = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
AfterSp = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
|
|
@ -670,7 +670,7 @@ namespace Kurs.Platform.Migrations
|
||||||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Slug = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Slug = 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),
|
||||||
Icon = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Icon = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
DisplayOrder = table.Column<int>(type: "int", nullable: false),
|
DisplayOrder = table.Column<int>(type: "int", nullable: false),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
||||||
PostCount = table.Column<int>(type: "int", nullable: true),
|
PostCount = table.Column<int>(type: "int", nullable: true),
|
||||||
|
|
@ -693,23 +693,23 @@ namespace Kurs.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: false),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Code = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Code = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
VknTckn = table.Column<long>(type: "bigint", nullable: false),
|
VknTckn = table.Column<long>(type: "bigint", nullable: false),
|
||||||
TaxOffice = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TaxOffice = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Country = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Country = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
City = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
City = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
District = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
District = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Street = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Street = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
Address = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Address = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
Address2 = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Address2 = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
PostalCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
PostalCode = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
|
||||||
Phone = table.Column<long>(type: "bigint", nullable: true),
|
Phone = table.Column<long>(type: "bigint", maxLength: 20, nullable: true),
|
||||||
Mobile = table.Column<long>(type: "bigint", nullable: false),
|
Mobile = table.Column<long>(type: "bigint", maxLength: 20, nullable: false),
|
||||||
Fax = table.Column<long>(type: "bigint", nullable: true),
|
Fax = table.Column<long>(type: "bigint", maxLength: 20, nullable: true),
|
||||||
Email = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Website = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: true),
|
IsActive = table.Column<bool>(type: "bit", nullable: true, 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),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -863,8 +863,8 @@ namespace Kurs.Platform.Migrations
|
||||||
Code = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: false),
|
Code = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: false),
|
||||||
Symbol = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
Symbol = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
||||||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Rate = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
|
Rate = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
IsActive = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
||||||
LastUpdated = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastUpdated = 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),
|
||||||
|
|
@ -890,7 +890,7 @@ namespace Kurs.Platform.Migrations
|
||||||
Props = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
Props = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||||
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),
|
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
||||||
Dependencies = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Dependencies = 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),
|
||||||
|
|
@ -910,12 +910,12 @@ namespace Kurs.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),
|
||||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
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(512)", maxLength: 512, nullable: true),
|
||||||
Url = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Url = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||||
Method = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Method = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
||||||
DataSourceCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
DataSourceCode = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
Sql = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Sql = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
ParametersJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ParametersJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
PermissionsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
PermissionsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
|
@ -967,7 +967,7 @@ namespace Kurs.Platform.Migrations
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
Code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
DataSourceType = table.Column<int>(type: "int", nullable: false),
|
DataSourceType = table.Column<int>(type: "int", nullable: false),
|
||||||
ConnectionString = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
ConnectionString = 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),
|
||||||
|
|
@ -1014,7 +1014,7 @@ namespace Kurs.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),
|
||||||
Slug = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Slug = 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),
|
||||||
Icon = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
Icon = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
DisplayOrder = table.Column<int>(type: "int", nullable: false),
|
DisplayOrder = table.Column<int>(type: "int", nullable: false),
|
||||||
|
|
@ -1049,9 +1049,9 @@ namespace Kurs.Platform.Migrations
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
System = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
System = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
Group = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
Group = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
Term = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Term = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||||
Weight = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Weight = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
Url = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
Url = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true)
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
|
|
@ -1142,20 +1142,20 @@ namespace Kurs.Platform.Migrations
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
ListFormCode = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
ListFormCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
CultureName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||||
DataSourceCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
DataSourceCode = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
SelectCommandType = table.Column<int>(type: "int", nullable: false),
|
SelectCommandType = table.Column<int>(type: "int", nullable: false),
|
||||||
TableName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TableName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
SelectCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
SelectCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
KeyFieldName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
KeyFieldName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
KeyFieldDbSourceType = table.Column<int>(type: "int", nullable: false),
|
KeyFieldDbSourceType = table.Column<int>(type: "int", nullable: false),
|
||||||
SelectFieldsDefaultValueJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
SelectFieldsDefaultValueJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Description = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
Title = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Title = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
SortMode = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
SortMode = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
PageSize = table.Column<int>(type: "int", nullable: false, defaultValue: 10),
|
PageSize = table.Column<int>(type: "int", nullable: false, defaultValue: 20),
|
||||||
Width = table.Column<int>(type: "int", nullable: true),
|
Width = table.Column<int>(type: "int", nullable: true),
|
||||||
Height = table.Column<int>(type: "int", nullable: true),
|
Height = table.Column<int>(type: "int", nullable: true),
|
||||||
DefaultFilter = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
DefaultFilter = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
|
@ -1179,23 +1179,23 @@ namespace Kurs.Platform.Migrations
|
||||||
DeleteCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
DeleteCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
UpdateCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
UpdateCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
InsertCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
InsertCommand = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
UpdateServiceAddress = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
UpdateServiceAddress = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
InsertServiceAddress = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
InsertServiceAddress = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
DeleteServiceAddress = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
DeleteServiceAddress = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
CustomJsSourcesJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CustomJsSourcesJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
CustomStyleSourcesJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CustomStyleSourcesJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
FormFieldsDefaultValueJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
FormFieldsDefaultValueJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
IsTenant = table.Column<bool>(type: "bit", nullable: false),
|
IsTenant = table.Column<bool>(type: "bit", nullable: false),
|
||||||
IsBranch = table.Column<bool>(type: "bit", nullable: false),
|
IsBranch = table.Column<bool>(type: "bit", nullable: false),
|
||||||
IsOrganizationUnit = table.Column<bool>(type: "bit", nullable: false),
|
IsOrganizationUnit = table.Column<bool>(type: "bit", nullable: false),
|
||||||
ListFormType = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ListFormType = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
IsSubForm = table.Column<bool>(type: "bit", nullable: false),
|
IsSubForm = table.Column<bool>(type: "bit", nullable: false),
|
||||||
SubFormsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
SubFormsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
WidgetsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
WidgetsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
ExtraFilterJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ExtraFilterJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
LayoutJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
LayoutJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
UserId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
UserId = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
RoleId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
RoleId = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
CommonJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CommonJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
DataSourceJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
DataSourceJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
AdaptiveLayoutJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
AdaptiveLayoutJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
|
@ -1266,7 +1266,7 @@ namespace Kurs.Platform.Migrations
|
||||||
ValidRows = table.Column<int>(type: "int", nullable: false),
|
ValidRows = table.Column<int>(type: "int", nullable: false),
|
||||||
ErrorRows = table.Column<int>(type: "int", nullable: false),
|
ErrorRows = table.Column<int>(type: "int", nullable: false),
|
||||||
Progress = table.Column<double>(type: "float", nullable: false),
|
Progress = table.Column<double>(type: "float", nullable: false),
|
||||||
ErrorsJson = table.Column<string>(type: "text", nullable: true),
|
ErrorsJson = 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),
|
||||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
|
@ -1288,10 +1288,10 @@ namespace Kurs.Platform.Migrations
|
||||||
Code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
Code = 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),
|
||||||
Order = table.Column<int>(type: "int", nullable: false),
|
Order = table.Column<int>(type: "int", nullable: false),
|
||||||
Url = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
Url = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: true),
|
||||||
Icon = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
Icon = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
ParentCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
ParentCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
CssClass = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
CssClass = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
RequiredPermissionName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
RequiredPermissionName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Target = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
Target = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||||
IsDisabled = table.Column<bool>(type: "bit", nullable: false),
|
IsDisabled = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
|
@ -1370,21 +1370,21 @@ namespace Kurs.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),
|
||||||
OrganizationName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
OrganizationName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Founder = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Founder = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
VknTckn = table.Column<long>(type: "bigint", nullable: false),
|
VknTckn = table.Column<long>(type: "bigint", nullable: false),
|
||||||
TaxOffice = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TaxOffice = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Address = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Address = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
Address2 = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Address2 = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
District = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
District = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Country = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Country = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
City = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
City = 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(16)", maxLength: 16, nullable: true),
|
||||||
Phone = table.Column<long>(type: "bigint", nullable: false),
|
Phone = table.Column<long>(type: "bigint", nullable: false),
|
||||||
Mobile = table.Column<long>(type: "bigint", nullable: false),
|
Mobile = table.Column<long>(type: "bigint", nullable: false),
|
||||||
Fax = table.Column<long>(type: "bigint", nullable: false),
|
Fax = table.Column<long>(type: "bigint", nullable: false),
|
||||||
Email = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Website = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
Subtotal = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
Subtotal = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
Commission = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
Commission = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
Total = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
Total = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false),
|
||||||
|
|
@ -1475,7 +1475,7 @@ namespace Kurs.Platform.Migrations
|
||||||
Key = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Key = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Path = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
Path = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||||
ComponentPath = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
ComponentPath = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||||
RouteType = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
RouteType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
Authority = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Authority = 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),
|
||||||
|
|
@ -1873,7 +1873,7 @@ namespace Kurs.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(64)", maxLength: 64, nullable: true),
|
||||||
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
ViewCount = table.Column<int>(type: "int", nullable: true),
|
ViewCount = table.Column<int>(type: "int", nullable: true),
|
||||||
|
|
@ -2063,7 +2063,8 @@ namespace Kurs.Platform.Migrations
|
||||||
name: "FK_PBankAccount_PCurrency_CurrencyId",
|
name: "FK_PBankAccount_PCurrency_CurrencyId",
|
||||||
column: x => x.CurrencyId,
|
column: x => x.CurrencyId,
|
||||||
principalTable: "PCurrency",
|
principalTable: "PCurrency",
|
||||||
principalColumn: "Id");
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
|
|
@ -2110,7 +2111,7 @@ namespace Kurs.Platform.Migrations
|
||||||
SqlScript = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
SqlScript = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
Status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
AppliedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
AppliedAt = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ErrorMessage = 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),
|
||||||
|
|
@ -2123,7 +2124,8 @@ namespace Kurs.Platform.Migrations
|
||||||
name: "FK_PApiMigration_PCustomEntity_EntityId",
|
name: "FK_PApiMigration_PCustomEntity_EntityId",
|
||||||
column: x => x.EntityId,
|
column: x => x.EntityId,
|
||||||
principalTable: "PCustomEntity",
|
principalTable: "PCustomEntity",
|
||||||
principalColumn: "Id");
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
|
|
@ -2137,7 +2139,7 @@ namespace Kurs.Platform.Migrations
|
||||||
IsRequired = table.Column<bool>(type: "bit", nullable: false),
|
IsRequired = table.Column<bool>(type: "bit", nullable: false),
|
||||||
MaxLength = table.Column<int>(type: "int", nullable: true),
|
MaxLength = table.Column<int>(type: "int", nullable: true),
|
||||||
IsUnique = table.Column<bool>(type: "bit", nullable: false),
|
IsUnique = table.Column<bool>(type: "bit", nullable: false),
|
||||||
DefaultValue = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
DefaultValue = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, 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),
|
||||||
|
|
@ -2167,7 +2169,7 @@ namespace Kurs.Platform.Migrations
|
||||||
Content = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Content = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
AuthorName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
AuthorName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
ViewCount = table.Column<int>(type: "int", nullable: false),
|
ViewCount = table.Column<int>(type: "int", nullable: false),
|
||||||
ReplyCount = table.Column<int>(type: "int", nullable: false),
|
ReplyCount = table.Column<int>(type: "int", nullable: false),
|
||||||
LikeCount = table.Column<int>(type: "int", nullable: false),
|
LikeCount = table.Column<int>(type: "int", nullable: false),
|
||||||
|
|
@ -2177,7 +2179,7 @@ namespace Kurs.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(128)", maxLength: 128, nullable: true),
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", 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),
|
||||||
|
|
@ -2231,10 +2233,10 @@ namespace Kurs.Platform.Migrations
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
ListFormCode = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
ListFormCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
UserId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
UserId = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
RoleId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
RoleId = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
FilterName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
FilterName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
CustomizationData = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CustomizationData = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
CustomizationType = table.Column<int>(type: "int", nullable: false),
|
CustomizationType = table.Column<int>(type: "int", nullable: false),
|
||||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
|
@ -2261,29 +2263,29 @@ namespace Kurs.Platform.Migrations
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
ListFormCode = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
ListFormCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||||
UserId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
UserId = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
RoleId = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
RoleId = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
CultureName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||||
FieldName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
FieldName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
CaptionName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
CaptionName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||||
Visible = table.Column<bool>(type: "bit", nullable: true, defaultValue: true),
|
Visible = table.Column<bool>(type: "bit", nullable: true, defaultValue: true),
|
||||||
IsActive = table.Column<bool>(type: "bit", nullable: true, defaultValue: true),
|
IsActive = table.Column<bool>(type: "bit", nullable: true, defaultValue: true),
|
||||||
Width = table.Column<int>(type: "int", nullable: true, defaultValue: 100),
|
Width = table.Column<int>(type: "int", nullable: true, defaultValue: 100),
|
||||||
ListOrderNo = table.Column<int>(type: "int", nullable: true, defaultValue: 30),
|
ListOrderNo = table.Column<int>(type: "int", nullable: true, defaultValue: 30),
|
||||||
SourceDbType = table.Column<int>(type: "int", nullable: false, defaultValue: 16),
|
SourceDbType = table.Column<int>(type: "int", nullable: false),
|
||||||
SortIndex = table.Column<int>(type: "int", nullable: true),
|
SortIndex = table.Column<int>(type: "int", nullable: true),
|
||||||
SortDirection = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
SortDirection = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||||
AllowSearch = table.Column<bool>(type: "bit", nullable: true, defaultValue: false),
|
AllowSearch = table.Column<bool>(type: "bit", nullable: true, defaultValue: false),
|
||||||
BandName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
BandName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
ColumnFilterJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ColumnFilterJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
ColumnHeaderJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ColumnHeaderJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
GroupingJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
GroupingJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
ColumnCustomizationJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ColumnCustomizationJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
TotalSummaryJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
TotalSummaryJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
GroupSummaryJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
GroupSummaryJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
ColumnCssClass = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ColumnCssClass = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
ColumnCssValue = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ColumnCssValue = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
JoinTableJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
JoinTableJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
EditingJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EditingJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
LookupJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
LookupJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
|
|
@ -2291,8 +2293,8 @@ namespace Kurs.Platform.Migrations
|
||||||
ColumnStylingJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
ColumnStylingJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
PermissionJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
PermissionJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
PivotSettingsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
PivotSettingsJson = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||||
Alignment = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Alignment = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true, defaultValue: "left"),
|
||||||
Format = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
Format = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||||
EditorOptions = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
EditorOptions = 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),
|
||||||
|
|
@ -2404,8 +2406,8 @@ namespace Kurs.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),
|
||||||
Progress = table.Column<int>(type: "int", nullable: false),
|
Progress = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
IsDefault = table.Column<bool>(type: "bit", nullable: false),
|
IsDefault = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
SkillTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SkillTypeId = table.Column<Guid>(type: "uniqueidentifier", 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),
|
||||||
|
|
@ -2550,7 +2552,7 @@ namespace Kurs.Platform.Migrations
|
||||||
TopicId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
TopicId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Content = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
Content = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
AuthorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
AuthorName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
AuthorName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
LikeCount = table.Column<int>(type: "int", nullable: true),
|
LikeCount = table.Column<int>(type: "int", nullable: true),
|
||||||
IsAcceptedAnswer = table.Column<bool>(type: "bit", nullable: true),
|
IsAcceptedAnswer = table.Column<bool>(type: "bit", nullable: true),
|
||||||
ParentPostId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
ParentPostId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
|
@ -2645,7 +2647,7 @@ namespace Kurs.Platform.Migrations
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CountryCode = table.Column<string>(type: "nvarchar(8)", nullable: true),
|
CountryCode = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
||||||
CityCode = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: false),
|
CityCode = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: false),
|
||||||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Township = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
Township = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
|
|
@ -706,7 +706,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("BotName")
|
b.Property<string>("BotName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -814,7 +816,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("ErrorMessage")
|
b.Property<string>("ErrorMessage")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("FileName")
|
b.Property<string>("FileName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -888,7 +891,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -1097,7 +1102,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Icon")
|
b.Property<string>("Icon")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -1206,7 +1212,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<string>("ReadTime")
|
b.Property<string>("ReadTime")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("Slug")
|
b.Property<string>("Slug")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -1249,19 +1256,25 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Address")
|
b.Property<string>("Address")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("Address2")
|
b.Property<string>("Address2")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("City")
|
b.Property<string>("City")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
b.Property<string>("Code")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("Country")
|
b.Property<string>("Country")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -1280,16 +1293,21 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("District")
|
b.Property<string>("District")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<string>("Email")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<long?>("Fax")
|
b.Property<long?>("Fax")
|
||||||
|
.HasMaxLength(20)
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<bool?>("IsActive")
|
b.Property<bool?>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -1306,22 +1324,29 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<long>("Mobile")
|
b.Property<long>("Mobile")
|
||||||
|
.HasMaxLength(20)
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<long?>("Phone")
|
b.Property<long?>("Phone")
|
||||||
|
.HasMaxLength(20)
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("PostalCode")
|
b.Property<string>("PostalCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(16)
|
||||||
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<string>("Street")
|
b.Property<string>("Street")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("TaxOffice")
|
b.Property<string>("TaxOffice")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid>("TenantId")
|
b.Property<Guid>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -1330,7 +1355,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Website")
|
b.Property<string>("Website")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -1964,7 +1990,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsActive")
|
b.Property<bool>("IsActive")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(true);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -1989,6 +2017,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<decimal>("Rate")
|
b.Property<decimal>("Rate")
|
||||||
|
.HasPrecision(18, 6)
|
||||||
.HasColumnType("decimal(18,6)");
|
.HasColumnType("decimal(18,6)");
|
||||||
|
|
||||||
b.Property<string>("Symbol")
|
b.Property<string>("Symbol")
|
||||||
|
|
@ -2026,7 +2055,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("Dependencies")
|
b.Property<string>("Dependencies")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(2000)
|
||||||
|
.HasColumnType("nvarchar(2000)");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasMaxLength(500)
|
.HasMaxLength(500)
|
||||||
|
|
@ -2081,7 +2111,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("DataSourceCode")
|
b.Property<string>("DataSourceCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -2092,7 +2124,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -2109,10 +2142,14 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
b.Property<string>("Method")
|
b.Property<string>("Method")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("ParametersJson")
|
b.Property<string>("ParametersJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2121,6 +2158,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("Sql")
|
b.Property<string>("Sql")
|
||||||
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
|
|
@ -2128,7 +2166,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("TenantId");
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Url")
|
b.Property<string>("Url")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -2234,7 +2274,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("DefaultValue")
|
b.Property<string>("DefaultValue")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -2302,8 +2343,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("ConnectionString")
|
b.Property<string>("ConnectionString")
|
||||||
.HasMaxLength(200)
|
.HasMaxLength(256)
|
||||||
.HasColumnType("nvarchar(200)");
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -2434,6 +2475,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(16)");
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<string>("CountryCode")
|
b.Property<string>("CountryCode")
|
||||||
|
.HasMaxLength(8)
|
||||||
.HasColumnType("nvarchar(8)");
|
.HasColumnType("nvarchar(8)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
|
|
@ -2513,13 +2555,17 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("TenantId");
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Term")
|
b.Property<string>("Term")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("Url")
|
b.Property<string>("Url")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("Weight")
|
b.Property<string>("Weight")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -2656,7 +2702,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("CultureName")
|
b.Property<string>("CultureName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<string>("CustomJsSourcesJson")
|
b.Property<string>("CustomJsSourcesJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2665,7 +2712,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("DataSourceCode")
|
b.Property<string>("DataSourceCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("DataSourceJson")
|
b.Property<string>("DataSourceJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2680,7 +2728,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("DeleteServiceAddress")
|
b.Property<string>("DeleteServiceAddress")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -2691,7 +2740,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("EditingFormJson")
|
b.Property<string>("EditingFormJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2730,7 +2780,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("InsertServiceAddress")
|
b.Property<string>("InsertServiceAddress")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<bool>("IsBranch")
|
b.Property<bool>("IsBranch")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
@ -2773,21 +2824,24 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("ListFormCode")
|
b.Property<string>("ListFormCode")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(450)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("ListFormType")
|
b.Property<string>("ListFormType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("MarginJson")
|
b.Property<string>("MarginJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<int>("PageSize")
|
b.Property<int>("PageSize")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasDefaultValue(10);
|
.HasDefaultValue(20);
|
||||||
|
|
||||||
b.Property<string>("PagerOptionJson")
|
b.Property<string>("PagerOptionJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2802,7 +2856,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ScrollBarJson")
|
b.Property<string>("ScrollBarJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2829,7 +2884,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("SortMode")
|
b.Property<string>("SortMode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
b.Property<string>("StateStoringJson")
|
b.Property<string>("StateStoringJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2838,10 +2894,12 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("TableName")
|
b.Property<string>("TableName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("TitleJson")
|
b.Property<string>("TitleJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2856,10 +2914,12 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("UpdateServiceAddress")
|
b.Property<string>("UpdateServiceAddress")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ValueAxisJson")
|
b.Property<string>("ValueAxisJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2906,7 +2966,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("FilterName")
|
b.Property<string>("FilterName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -2924,13 +2985,16 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("ListFormCode")
|
b.Property<string>("ListFormCode")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(450)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -2945,7 +3009,10 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Alignment")
|
b.Property<string>("Alignment")
|
||||||
.HasColumnType("nvarchar(max)");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)")
|
||||||
|
.HasDefaultValue("left");
|
||||||
|
|
||||||
b.Property<bool?>("AllowSearch")
|
b.Property<bool?>("AllowSearch")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -2953,16 +3020,20 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasDefaultValue(false);
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
b.Property<string>("BandName")
|
b.Property<string>("BandName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("CaptionName")
|
b.Property<string>("CaptionName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
b.Property<string>("ColumnCssClass")
|
b.Property<string>("ColumnCssClass")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("ColumnCssValue")
|
b.Property<string>("ColumnCssValue")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ColumnCustomizationJson")
|
b.Property<string>("ColumnCustomizationJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -2985,7 +3056,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("CultureName")
|
b.Property<string>("CultureName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -3002,11 +3074,13 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("FieldName")
|
b.Property<string>("FieldName")
|
||||||
|
.IsRequired()
|
||||||
.HasMaxLength(100)
|
.HasMaxLength(100)
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("Format")
|
b.Property<string>("Format")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
b.Property<string>("GroupSummaryJson")
|
b.Property<string>("GroupSummaryJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -3038,7 +3112,8 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.Property<string>("ListFormCode")
|
b.Property<string>("ListFormCode")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(450)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.Property<int?>("ListOrderNo")
|
b.Property<int?>("ListOrderNo")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -3055,24 +3130,25 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("SortDirection")
|
b.Property<string>("SortDirection")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(10)
|
||||||
|
.HasColumnType("nvarchar(10)");
|
||||||
|
|
||||||
b.Property<int?>("SortIndex")
|
b.Property<int?>("SortIndex")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("SourceDbType")
|
b.Property<int>("SourceDbType")
|
||||||
.ValueGeneratedOnAdd()
|
.HasColumnType("int");
|
||||||
.HasColumnType("int")
|
|
||||||
.HasDefaultValue(16);
|
|
||||||
|
|
||||||
b.Property<string>("TotalSummaryJson")
|
b.Property<string>("TotalSummaryJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("ValidationRuleJson")
|
b.Property<string>("ValidationRuleJson")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
@ -3182,7 +3258,7 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("ErrorsJson")
|
b.Property<string>("ErrorsJson")
|
||||||
.HasColumnType("text");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<int>("ExecRows")
|
b.Property<int>("ExecRows")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
@ -3239,8 +3315,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("CreatorId");
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
b.Property<string>("CssClass")
|
b.Property<string>("CssClass")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(128)
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("CultureName")
|
b.Property<string>("CultureName")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
|
|
@ -3304,8 +3380,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(50)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<string>("Url")
|
b.Property<string>("Url")
|
||||||
.HasMaxLength(100)
|
.HasMaxLength(250)
|
||||||
.HasColumnType("nvarchar(100)");
|
.HasColumnType("nvarchar(250)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasMaxLength(256)
|
.HasMaxLength(256)
|
||||||
|
|
@ -3322,20 +3398,24 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("Address")
|
b.Property<string>("Address")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("Address2")
|
b.Property<string>("Address2")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<string>("City")
|
b.Property<string>("City")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<decimal>("Commission")
|
b.Property<decimal>("Commission")
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("Country")
|
b.Property<string>("Country")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreationTime")
|
b.Property<DateTime>("CreationTime")
|
||||||
.HasColumnType("datetime2")
|
.HasColumnType("datetime2")
|
||||||
|
|
@ -3354,16 +3434,19 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("District")
|
b.Property<string>("District")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<string>("Email")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<long>("Fax")
|
b.Property<long>("Fax")
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Founder")
|
b.Property<string>("Founder")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("InstallmentName")
|
b.Property<string>("InstallmentName")
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
|
|
@ -3390,7 +3473,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("OrganizationName")
|
b.Property<string>("OrganizationName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("PaymentDataJson")
|
b.Property<string>("PaymentDataJson")
|
||||||
.HasMaxLength(4000)
|
.HasMaxLength(4000)
|
||||||
|
|
@ -3405,14 +3489,16 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("PostalCode")
|
b.Property<string>("PostalCode")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(16)
|
||||||
|
.HasColumnType("nvarchar(16)");
|
||||||
|
|
||||||
b.Property<decimal>("Subtotal")
|
b.Property<decimal>("Subtotal")
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
.HasColumnType("decimal(18,2)");
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
b.Property<string>("TaxOffice")
|
b.Property<string>("TaxOffice")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
|
|
@ -3426,7 +3512,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("bigint");
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
b.Property<string>("Website")
|
b.Property<string>("Website")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -3896,7 +3983,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(256)");
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<string>("RouteType")
|
b.Property<string>("RouteType")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(64)
|
||||||
|
.HasColumnType("nvarchar(64)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -4090,7 +4178,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<bool>("IsDefault")
|
b.Property<bool>("IsDefault")
|
||||||
.HasColumnType("bit");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
b.Property<bool>("IsDeleted")
|
b.Property<bool>("IsDeleted")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
|
|
@ -4112,7 +4202,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<int>("Progress")
|
b.Property<int>("Progress")
|
||||||
.HasColumnType("int");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
b.Property<Guid>("SkillTypeId")
|
b.Property<Guid>("SkillTypeId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4359,7 +4451,9 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Slug")
|
b.Property<string>("Slug")
|
||||||
.HasColumnType("nvarchar(max)");
|
.IsRequired()
|
||||||
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4383,7 +4477,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AuthorName")
|
b.Property<string>("AuthorName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<string>("Content")
|
b.Property<string>("Content")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -4452,7 +4547,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AuthorName")
|
b.Property<string>("AuthorName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid>("CategoryId")
|
b.Property<Guid>("CategoryId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
@ -4510,7 +4606,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("LastPostUserName")
|
b.Property<string>("LastPostUserName")
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasMaxLength(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<int>("LikeCount")
|
b.Property<int>("LikeCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
@ -6475,7 +6572,9 @@ namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity")
|
b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("EntityId");
|
.HasForeignKey("EntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Entity");
|
b.Navigation("Entity");
|
||||||
});
|
});
|
||||||
|
|
@ -6490,7 +6589,8 @@ namespace Kurs.Platform.Migrations
|
||||||
|
|
||||||
b.HasOne("Kurs.Platform.Entities.Currency", "Currency")
|
b.HasOne("Kurs.Platform.Entities.Currency", "Currency")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("CurrencyId");
|
.HasForeignKey("CurrencyId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.Navigation("Bank");
|
b.Navigation("Bank");
|
||||||
|
|
||||||
|
|
@ -6609,7 +6709,8 @@ namespace Kurs.Platform.Migrations
|
||||||
b.HasOne("Kurs.Platform.Entities.Order", "Order")
|
b.HasOne("Kurs.Platform.Entities.Order", "Order")
|
||||||
.WithMany("Items")
|
.WithMany("Items")
|
||||||
.HasForeignKey("OrderId")
|
.HasForeignKey("OrderId")
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Order");
|
b.Navigation("Order");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue