@ -11,17 +11,17 @@ using VoloDocs.EntityFrameworkCore;
namespace VoloDocs.EntityFrameworkCore.Migrations
namespace VoloDocs.EntityFrameworkCore.Migrations
{
{
[DbContext(typeof(VoloDocsDbContext))]
[DbContext(typeof(VoloDocsDbContext))]
[Migration("20201013055312 _Initial")]
[Migration("20201104131104 _Initial")]
partial class Initial
partial class Initial
{
{
protected override void BuildTargetModel ( ModelBuilder modelBuilder )
protected override void BuildTargetModel ( ModelBuilder modelBuilder )
{
{
#pragma warning disable 612, 618
#pragma warning disable 612, 618
modelBuilder
modelBuilder
. UseIdentityColumns ( )
. HasAnnotation ( "_Abp_DatabaseProvider" , EfCoreDatabaseProvider . SqlServer )
. HasAnnotation ( "_Abp_DatabaseProvider" , EfCoreDatabaseProvider . SqlServer )
. HasAnnotation ( "ProductVersion" , "3.1.8" )
. HasAnnotation ( "Relational:MaxIdentifierLength" , 1 2 8 )
. HasAnnotation ( "Relational:MaxIdentifierLength" , 1 2 8 )
. HasAnnotation ( "SqlServer:ValueGenerationStrategy" , SqlServerValueGenerationStrategy . IdentityColumn ) ;
. HasAnnotation ( "ProductVersion" , "5.0.0-rc.2.20475.6" ) ;
modelBuilder . Entity ( "Volo.Abp.Identity.IdentityClaimType" , b = >
modelBuilder . Entity ( "Volo.Abp.Identity.IdentityClaimType" , b = >
{
{
@ -31,33 +31,33 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "ConcurrencyStamp" )
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( )
. IsConcurrencyToken ( )
. HasColumnName ( "ConcurrencyStamp" )
. HasMaxLength ( 4 0 )
. HasColumnType ( "nvarchar(40)" )
. HasColumnType ( "nvarchar(40)" )
. HasMaxLength ( 4 0 ) ;
. HasColumnName ( "ConcurrencyStamp" ) ;
b . Property < string > ( "Description" )
b . Property < string > ( "Description" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnType ( "nvarchar(256)" ) ;
b . Property < string > ( "ExtraProperties" )
b . Property < string > ( "ExtraProperties" )
. HasColumnName ( "ExtraProperties " )
. HasColumnType ( "nvarchar(max) " )
. HasColumnType ( "nvarchar(max) " ) ;
. HasColumnName ( "ExtraProperties " ) ;
b . Property < bool > ( "IsStatic" )
b . Property < bool > ( "IsStatic" )
. HasColumnType ( "bit" ) ;
. HasColumnType ( "bit" ) ;
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnType ( "nvarchar(256)" ) ;
b . Property < string > ( "Regex" )
b . Property < string > ( "Regex" )
. HasColumnType ( "nvarchar(512)" )
. HasMaxLength ( 5 1 2 )
. HasMaxLength ( 5 1 2 ) ;
. HasColumnType ( "nvarchar(512)" ) ;
b . Property < string > ( "RegexDescription" )
b . Property < string > ( "RegexDescription" )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < bool > ( "Required" )
b . Property < bool > ( "Required" )
. HasColumnType ( "bit" ) ;
. HasColumnType ( "bit" ) ;
@ -105,39 +105,39 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "ConcurrencyStamp" )
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( )
. IsConcurrencyToken ( )
. HasColumnName ( "ConcurrencyStamp" )
. HasMaxLength ( 4 0 )
. HasColumnType ( "nvarchar(40)" )
. HasColumnType ( "nvarchar(40)" )
. HasMaxLength ( 4 0 ) ;
. HasColumnName ( "ConcurrencyStamp" ) ;
b . Property < string > ( "ExtraProperties" )
b . Property < string > ( "ExtraProperties" )
. HasColumnName ( "ExtraProperties " )
. HasColumnType ( "nvarchar(max) " )
. HasColumnType ( "nvarchar(max) " ) ;
. HasColumnName ( "ExtraProperties " ) ;
b . Property < bool > ( "IsDefault" )
b . Property < bool > ( "IsDefault" )
. HasColumnName ( "IsDefaul t" )
. HasColumnType ( "bi t" )
. HasColumnType ( "bi t" ) ;
. HasColumnName ( "IsDefaul t" ) ;
b . Property < bool > ( "IsPublic" )
b . Property < bool > ( "IsPublic" )
. HasColumnName ( "IsPublic " )
. HasColumnType ( "bit " )
. HasColumnType ( "bit " ) ;
. HasColumnName ( "IsPublic " ) ;
b . Property < bool > ( "IsStatic" )
b . Property < bool > ( "IsStatic" )
. HasColumnName ( "IsStatic " )
. HasColumnType ( "bit " )
. HasColumnType ( "bit " ) ;
. HasColumnName ( "IsStatic " ) ;
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnType ( "nvarchar(256)" ) ;
b . Property < string > ( "NormalizedName" )
b . Property < string > ( "NormalizedName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnType ( "nvarchar(256)" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -153,19 +153,19 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "ClaimType" )
b . Property < string > ( "ClaimType" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnType ( "nvarchar(256)" ) ;
b . Property < string > ( "ClaimValue" )
b . Property < string > ( "ClaimValue" )
. HasColumnType ( "nvarchar(1024)" )
. HasMaxLength ( 1 0 2 4 )
. HasMaxLength ( 1 0 2 4 ) ;
. HasColumnType ( "nvarchar(1024)" ) ;
b . Property < Guid > ( "RoleId" )
b . Property < Guid > ( "RoleId" )
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -181,60 +181,60 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < string > ( "Action" )
b . Property < string > ( "Action" )
. HasColumnType ( "nvarchar(96)" )
. HasMaxLength ( 9 6 )
. HasMaxLength ( 9 6 ) ;
. HasColumnType ( "nvarchar(96)" ) ;
b . Property < string > ( "ApplicationName" )
b . Property < string > ( "ApplicationName" )
. HasColumnType ( "nvarchar(96)" )
. HasMaxLength ( 9 6 )
. HasMaxLength ( 9 6 ) ;
. HasColumnType ( "nvarchar(96)" ) ;
b . Property < string > ( "BrowserInfo" )
b . Property < string > ( "BrowserInfo" )
. HasColumnType ( "nvarchar(512)" )
. HasMaxLength ( 5 1 2 )
. HasMaxLength ( 5 1 2 ) ;
. HasColumnType ( "nvarchar(512)" ) ;
b . Property < string > ( "ClientId" )
b . Property < string > ( "ClientId" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < string > ( "ClientIpAddress" )
b . Property < string > ( "ClientIpAddress" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < string > ( "ConcurrencyStamp" )
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( )
. IsConcurrencyToken ( )
. HasColumnName ( "ConcurrencyStamp" )
. HasMaxLength ( 4 0 )
. HasColumnType ( "nvarchar(40)" )
. HasColumnType ( "nvarchar(40)" )
. HasMaxLength ( 4 0 ) ;
. HasColumnName ( "ConcurrencyStamp" ) ;
b . Property < string > ( "CorrelationId" )
b . Property < string > ( "CorrelationId" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < DateTime > ( "CreationTime" )
b . Property < DateTime > ( "CreationTime" )
. HasColumnType ( "datetime2" ) ;
. HasColumnType ( "datetime2" ) ;
b . Property < string > ( "ExtraProperties" )
b . Property < string > ( "ExtraProperties" )
. HasColumnName ( "ExtraProperties " )
. HasColumnType ( "nvarchar(max) " )
. HasColumnType ( "nvarchar(max) " ) ;
. HasColumnName ( "ExtraProperties " ) ;
b . Property < string > ( "Identity" )
b . Property < string > ( "Identity" )
. HasColumnType ( "nvarchar(96)" )
. HasMaxLength ( 9 6 )
. HasMaxLength ( 9 6 ) ;
. HasColumnType ( "nvarchar(96)" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . Property < string > ( "TenantName" )
b . Property < string > ( "TenantName" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < Guid ? > ( "UserId" )
b . Property < Guid ? > ( "UserId" )
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < string > ( "UserName" )
b . Property < string > ( "UserName" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnType ( "nvarchar(256)" ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -257,136 +257,136 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < int > ( "AccessFailedCount" )
b . Property < int > ( "AccessFailedCount" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "AccessFailedCount" )
. HasColumnType ( "int" )
. HasColumnType ( "int" )
. HasDefaultValue ( 0 ) ;
. HasDefaultValue ( 0 )
. HasColumnName ( "AccessFailedCount" ) ;
b . Property < string > ( "ConcurrencyStamp" )
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( )
. IsConcurrencyToken ( )
. HasColumnName ( "ConcurrencyStamp" )
. HasMaxLength ( 4 0 )
. HasColumnType ( "nvarchar(40)" )
. HasColumnType ( "nvarchar(40)" )
. HasMaxLength ( 4 0 ) ;
. HasColumnName ( "ConcurrencyStamp" ) ;
b . Property < DateTime > ( "CreationTime" )
b . Property < DateTime > ( "CreationTime" )
. HasColumnName ( "CreationTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "CreationTime " ) ;
b . Property < Guid ? > ( "CreatorId" )
b . Property < Guid ? > ( "CreatorId" )
. HasColumnName ( "CreatorId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "CreatorId " ) ;
b . Property < Guid ? > ( "DeleterId" )
b . Property < Guid ? > ( "DeleterId" )
. HasColumnName ( "DeleterId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "DeleterId " ) ;
b . Property < DateTime ? > ( "DeletionTime" )
b . Property < DateTime ? > ( "DeletionTime" )
. HasColumnName ( "DeletionTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "DeletionTime " ) ;
b . Property < string > ( "Email" )
b . Property < string > ( "Email" )
. IsRequired ( )
. IsRequired ( )
. HasColumnName ( "Email" )
. HasMaxLength ( 2 5 6 )
. HasColumnType ( "nvarchar(256)" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnName ( "Email" ) ;
b . Property < bool > ( "EmailConfirmed" )
b . Property < bool > ( "EmailConfirmed" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "EmailConfirmed" )
. HasColumnType ( "bit" )
. HasColumnType ( "bit" )
. HasDefaultValue ( false ) ;
. HasDefaultValue ( false )
. HasColumnName ( "EmailConfirmed" ) ;
b . Property < string > ( "ExtraProperties" )
b . Property < string > ( "ExtraProperties" )
. HasColumnName ( "ExtraProperties " )
. HasColumnType ( "nvarchar(max) " )
. HasColumnType ( "nvarchar(max) " ) ;
. HasColumnName ( "ExtraProperties " ) ;
b . Property < bool > ( "IsDeleted" )
b . Property < bool > ( "IsDeleted" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "IsDeleted" )
. HasColumnType ( "bit" )
. HasColumnType ( "bit" )
. HasDefaultValue ( false ) ;
. HasDefaultValue ( false )
. HasColumnName ( "IsDeleted" ) ;
b . Property < bool > ( "IsExternal" )
b . Property < bool > ( "IsExternal" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "IsExternal" )
. HasColumnType ( "bit" )
. HasColumnType ( "bit" )
. HasDefaultValue ( false ) ;
. HasDefaultValue ( false )
. HasColumnName ( "IsExternal" ) ;
b . Property < DateTime ? > ( "LastModificationTime" )
b . Property < DateTime ? > ( "LastModificationTime" )
. HasColumnName ( "LastModificationTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "LastModificationTime " ) ;
b . Property < Guid ? > ( "LastModifierId" )
b . Property < Guid ? > ( "LastModifierId" )
. HasColumnName ( "LastModifierId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "LastModifierId " ) ;
b . Property < bool > ( "LockoutEnabled" )
b . Property < bool > ( "LockoutEnabled" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "LockoutEnabled" )
. HasColumnType ( "bit" )
. HasColumnType ( "bit" )
. HasDefaultValue ( false ) ;
. HasDefaultValue ( false )
. HasColumnName ( "LockoutEnabled" ) ;
b . Property < DateTimeOffset ? > ( "LockoutEnd" )
b . Property < DateTimeOffset ? > ( "LockoutEnd" )
. HasColumnType ( "datetimeoffset" ) ;
. HasColumnType ( "datetimeoffset" ) ;
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. HasColumnName ( "Name" )
. HasMaxLength ( 6 4 )
. HasColumnType ( "nvarchar(64)" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 ) ;
. HasColumnName ( "Name" ) ;
b . Property < string > ( "NormalizedEmail" )
b . Property < string > ( "NormalizedEmail" )
. IsRequired ( )
. IsRequired ( )
. HasColumnName ( "NormalizedEmail" )
. HasMaxLength ( 2 5 6 )
. HasColumnType ( "nvarchar(256)" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnName ( "NormalizedEmail" ) ;
b . Property < string > ( "NormalizedUserName" )
b . Property < string > ( "NormalizedUserName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnName ( "NormalizedUserName" )
. HasMaxLength ( 2 5 6 )
. HasColumnType ( "nvarchar(256)" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnName ( "NormalizedUserName" ) ;
b . Property < string > ( "PasswordHash" )
b . Property < string > ( "PasswordHash" )
. HasColumnName ( "PasswordHash" )
. HasMaxLength ( 2 5 6 )
. HasColumnType ( "nvarchar(256)" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnName ( "PasswordHash" ) ;
b . Property < string > ( "PhoneNumber" )
b . Property < string > ( "PhoneNumber" )
. HasColumnName ( "PhoneNumber" )
. HasMaxLength ( 1 6 )
. HasColumnType ( "nvarchar(16)" )
. HasColumnType ( "nvarchar(16)" )
. HasMaxLength ( 1 6 ) ;
. HasColumnName ( "PhoneNumber" ) ;
b . Property < bool > ( "PhoneNumberConfirmed" )
b . Property < bool > ( "PhoneNumberConfirmed" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "PhoneNumberConfirmed" )
. HasColumnType ( "bit" )
. HasColumnType ( "bit" )
. HasDefaultValue ( false ) ;
. HasDefaultValue ( false )
. HasColumnName ( "PhoneNumberConfirmed" ) ;
b . Property < string > ( "SecurityStamp" )
b . Property < string > ( "SecurityStamp" )
. IsRequired ( )
. IsRequired ( )
. HasColumnName ( "SecurityStamp" )
. HasMaxLength ( 2 5 6 )
. HasColumnType ( "nvarchar(256)" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnName ( "SecurityStamp" ) ;
b . Property < string > ( "Surname" )
b . Property < string > ( "Surname" )
. HasColumnName ( "Surname" )
. HasMaxLength ( 6 4 )
. HasColumnType ( "nvarchar(64)" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 ) ;
. HasColumnName ( "Surname" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . Property < bool > ( "TwoFactorEnabled" )
b . Property < bool > ( "TwoFactorEnabled" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "TwoFactorEnabled" )
. HasColumnType ( "bit" )
. HasColumnType ( "bit" )
. HasDefaultValue ( false ) ;
. HasDefaultValue ( false )
. HasColumnName ( "TwoFactorEnabled" ) ;
b . Property < string > ( "UserName" )
b . Property < string > ( "UserName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnName ( "UserName" )
. HasMaxLength ( 2 5 6 )
. HasColumnType ( "nvarchar(256)" )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnName ( "UserName" ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -408,16 +408,16 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "ClaimType" )
b . Property < string > ( "ClaimType" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(256)" )
. HasMaxLength ( 2 5 6 )
. HasMaxLength ( 2 5 6 ) ;
. HasColumnType ( "nvarchar(256)" ) ;
b . Property < string > ( "ClaimValue" )
b . Property < string > ( "ClaimValue" )
. HasColumnType ( "nvarchar(1024)" )
. HasMaxLength ( 1 0 2 4 )
. HasMaxLength ( 1 0 2 4 ) ;
. HasColumnType ( "nvarchar(1024)" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . Property < Guid > ( "UserId" )
b . Property < Guid > ( "UserId" )
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
@ -435,21 +435,21 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < string > ( "LoginProvider" )
b . Property < string > ( "LoginProvider" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < string > ( "ProviderDisplayName" )
b . Property < string > ( "ProviderDisplayName" )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "ProviderKey" )
b . Property < string > ( "ProviderKey" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(196)" )
. HasMaxLength ( 1 9 6 )
. HasMaxLength ( 1 9 6 ) ;
. HasColumnType ( "nvarchar(196)" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "UserId" , "LoginProvider" ) ;
b . HasKey ( "UserId" , "LoginProvider" ) ;
@ -467,16 +467,16 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < DateTime > ( "CreationTime" )
b . Property < DateTime > ( "CreationTime" )
. HasColumnName ( "CreationTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "CreationTime " ) ;
b . Property < Guid ? > ( "CreatorId" )
b . Property < Guid ? > ( "CreatorId" )
. HasColumnName ( "CreatorId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "CreatorId " ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "OrganizationUnitId" , "UserId" ) ;
b . HasKey ( "OrganizationUnitId" , "UserId" ) ;
@ -494,8 +494,8 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "UserId" , "RoleId" ) ;
b . HasKey ( "UserId" , "RoleId" ) ;
@ -510,16 +510,16 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < string > ( "LoginProvider" )
b . Property < string > ( "LoginProvider" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . Property < string > ( "Value" )
b . Property < string > ( "Value" )
. HasColumnType ( "nvarchar(max)" ) ;
. HasColumnType ( "nvarchar(max)" ) ;
@ -537,62 +537,62 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "Code" )
b . Property < string > ( "Code" )
. IsRequired ( )
. IsRequired ( )
. HasColumnName ( "Code" )
. HasMaxLength ( 9 5 )
. HasColumnType ( "nvarchar(95)" )
. HasColumnType ( "nvarchar(95)" )
. HasMaxLength ( 9 5 ) ;
. HasColumnName ( "Code" ) ;
b . Property < string > ( "ConcurrencyStamp" )
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( )
. IsConcurrencyToken ( )
. HasColumnName ( "ConcurrencyStamp" )
. HasMaxLength ( 4 0 )
. HasColumnType ( "nvarchar(40)" )
. HasColumnType ( "nvarchar(40)" )
. HasMaxLength ( 4 0 ) ;
. HasColumnName ( "ConcurrencyStamp" ) ;
b . Property < DateTime > ( "CreationTime" )
b . Property < DateTime > ( "CreationTime" )
. HasColumnName ( "CreationTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "CreationTime " ) ;
b . Property < Guid ? > ( "CreatorId" )
b . Property < Guid ? > ( "CreatorId" )
. HasColumnName ( "CreatorId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "CreatorId " ) ;
b . Property < Guid ? > ( "DeleterId" )
b . Property < Guid ? > ( "DeleterId" )
. HasColumnName ( "DeleterId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "DeleterId " ) ;
b . Property < DateTime ? > ( "DeletionTime" )
b . Property < DateTime ? > ( "DeletionTime" )
. HasColumnName ( "DeletionTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "DeletionTime " ) ;
b . Property < string > ( "DisplayName" )
b . Property < string > ( "DisplayName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnName ( "DisplayName" )
. HasMaxLength ( 1 2 8 )
. HasColumnType ( "nvarchar(128)" )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnName ( "DisplayName" ) ;
b . Property < string > ( "ExtraProperties" )
b . Property < string > ( "ExtraProperties" )
. HasColumnName ( "ExtraProperties " )
. HasColumnType ( "nvarchar(max) " )
. HasColumnType ( "nvarchar(max) " ) ;
. HasColumnName ( "ExtraProperties " ) ;
b . Property < bool > ( "IsDeleted" )
b . Property < bool > ( "IsDeleted" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnName ( "IsDeleted" )
. HasColumnType ( "bit" )
. HasColumnType ( "bit" )
. HasDefaultValue ( false ) ;
. HasDefaultValue ( false )
. HasColumnName ( "IsDeleted" ) ;
b . Property < DateTime ? > ( "LastModificationTime" )
b . Property < DateTime ? > ( "LastModificationTime" )
. HasColumnName ( "LastModificationTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "LastModificationTime " ) ;
b . Property < Guid ? > ( "LastModifierId" )
b . Property < Guid ? > ( "LastModifierId" )
. HasColumnName ( "LastModifierId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "LastModifierId " ) ;
b . Property < Guid ? > ( "ParentId" )
b . Property < Guid ? > ( "ParentId" )
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -612,16 +612,16 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < DateTime > ( "CreationTime" )
b . Property < DateTime > ( "CreationTime" )
. HasColumnName ( "CreationTime " )
. HasColumnType ( "datetime2 " )
. HasColumnType ( "datetime2 " ) ;
. HasColumnName ( "CreationTime " ) ;
b . Property < Guid ? > ( "CreatorId" )
b . Property < Guid ? > ( "CreatorId" )
. HasColumnName ( "CreatorId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "CreatorId " ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "OrganizationUnitId" , "RoleId" ) ;
b . HasKey ( "OrganizationUnitId" , "RoleId" ) ;
@ -638,22 +638,22 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "ProviderKey" )
b . Property < string > ( "ProviderKey" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < string > ( "ProviderName" )
b . Property < string > ( "ProviderName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < Guid ? > ( "TenantId" )
b . Property < Guid ? > ( "TenantId" )
. HasColumnName ( "TenantId " )
. HasColumnType ( "uniqueidentifier " )
. HasColumnType ( "uniqueidentifier " ) ;
. HasColumnName ( "TenantId " ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -670,21 +670,21 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "ProviderKey" )
b . Property < string > ( "ProviderKey" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < string > ( "ProviderName" )
b . Property < string > ( "ProviderName" )
. HasColumnType ( "nvarchar(64)" )
. HasMaxLength ( 6 4 )
. HasMaxLength ( 6 4 ) ;
. HasColumnType ( "nvarchar(64)" ) ;
b . Property < string > ( "Value" )
b . Property < string > ( "Value" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(2048)" )
. HasMaxLength ( 2 0 4 8 )
. HasMaxLength ( 2 0 4 8 ) ;
. HasColumnType ( "nvarchar(2048)" ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -701,9 +701,9 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "ConcurrencyStamp" )
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( )
. IsConcurrencyToken ( )
. HasColumnName ( "ConcurrencyStamp" )
. HasMaxLength ( 4 0 )
. HasColumnType ( "nvarchar(40)" )
. HasColumnType ( "nvarchar(40)" )
. HasMaxLength ( 4 0 ) ;
. HasColumnName ( "ConcurrencyStamp" ) ;
b . Property < string > ( "Content" )
b . Property < string > ( "Content" )
. IsRequired ( )
. IsRequired ( )
@ -713,26 +713,26 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "datetime2" ) ;
. HasColumnType ( "datetime2" ) ;
b . Property < string > ( "EditLink" )
b . Property < string > ( "EditLink" )
. HasColumnType ( "nvarchar(2048)" )
. HasMaxLength ( 2 0 4 8 )
. HasMaxLength ( 2 0 4 8 ) ;
. HasColumnType ( "nvarchar(2048)" ) ;
b . Property < string > ( "ExtraProperties" )
b . Property < string > ( "ExtraProperties" )
. HasColumnName ( "ExtraProperties " )
. HasColumnType ( "nvarchar(max) " )
. HasColumnType ( "nvarchar(max) " ) ;
. HasColumnName ( "ExtraProperties " ) ;
b . Property < string > ( "FileName" )
b . Property < string > ( "FileName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "Format" )
b . Property < string > ( "Format" )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "LanguageCode" )
b . Property < string > ( "LanguageCode" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < DateTime > ( "LastCachedTime" )
b . Property < DateTime > ( "LastCachedTime" )
. HasColumnType ( "datetime2" ) ;
. HasColumnType ( "datetime2" ) ;
@ -744,29 +744,29 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. HasColumnType ( "datetime2" ) ;
. HasColumnType ( "datetime2" ) ;
b . Property < string > ( "LocalDirectory" )
b . Property < string > ( "LocalDirectory" )
. HasColumnType ( "nvarchar(512)" )
. HasMaxLength ( 5 1 2 )
. HasMaxLength ( 5 1 2 ) ;
. HasColumnType ( "nvarchar(512)" ) ;
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(255)" )
. HasMaxLength ( 2 5 5 )
. HasMaxLength ( 2 5 5 ) ;
. HasColumnType ( "nvarchar(255)" ) ;
b . Property < Guid > ( "ProjectId" )
b . Property < Guid > ( "ProjectId" )
. HasColumnType ( "uniqueidentifier" ) ;
. HasColumnType ( "uniqueidentifier" ) ;
b . Property < string > ( "RawRootUrl" )
b . Property < string > ( "RawRootUrl" )
. HasColumnType ( "nvarchar(2048)" )
. HasMaxLength ( 2 0 4 8 )
. HasMaxLength ( 2 0 4 8 ) ;
. HasColumnType ( "nvarchar(2048)" ) ;
b . Property < string > ( "RootUrl" )
b . Property < string > ( "RootUrl" )
. HasColumnType ( "nvarchar(2048)" )
. HasMaxLength ( 2 0 4 8 )
. HasMaxLength ( 2 0 4 8 ) ;
. HasColumnType ( "nvarchar(2048)" ) ;
b . Property < string > ( "Version" )
b . Property < string > ( "Version" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -800,28 +800,28 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "ConcurrencyStamp" )
b . Property < string > ( "ConcurrencyStamp" )
. IsConcurrencyToken ( )
. IsConcurrencyToken ( )
. HasColumnName ( "ConcurrencyStamp" )
. HasMaxLength ( 4 0 )
. HasColumnType ( "nvarchar(40)" )
. HasColumnType ( "nvarchar(40)" )
. HasMaxLength ( 4 0 ) ;
. HasColumnName ( "ConcurrencyStamp" ) ;
b . Property < string > ( "DefaultDocumentName" )
b . Property < string > ( "DefaultDocumentName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "DocumentStoreType" )
b . Property < string > ( "DocumentStoreType" )
. HasColumnType ( "nvarchar(max)" ) ;
. HasColumnType ( "nvarchar(max)" ) ;
b . Property < string > ( "ExtraProperties" )
b . Property < string > ( "ExtraProperties" )
. HasColumnName ( "ExtraProperties " )
. HasColumnType ( "nvarchar(max) " )
. HasColumnType ( "nvarchar(max) " ) ;
. HasColumnName ( "ExtraProperties " ) ;
b . Property < string > ( "Format" )
b . Property < string > ( "Format" )
. HasColumnType ( "nvarchar(max)" ) ;
. HasColumnType ( "nvarchar(max)" ) ;
b . Property < string > ( "LatestVersionBranchName" )
b . Property < string > ( "LatestVersionBranchName" )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "MainWebsiteUrl" )
b . Property < string > ( "MainWebsiteUrl" )
. HasColumnType ( "nvarchar(max)" ) ;
. HasColumnType ( "nvarchar(max)" ) ;
@ -831,23 +831,23 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "NavigationDocumentName" )
b . Property < string > ( "NavigationDocumentName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "ParametersDocumentName" )
b . Property < string > ( "ParametersDocumentName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(128)" )
. HasMaxLength ( 1 2 8 )
. HasMaxLength ( 1 2 8 ) ;
. HasColumnType ( "nvarchar(128)" ) ;
b . Property < string > ( "ShortName" )
b . Property < string > ( "ShortName" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( "nvarchar(32)" )
. HasMaxLength ( 3 2 )
. HasMaxLength ( 3 2 ) ;
. HasColumnType ( "nvarchar(32)" ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -950,6 +950,34 @@ namespace VoloDocs.EntityFrameworkCore.Migrations
. OnDelete ( DeleteBehavior . Cascade )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
. IsRequired ( ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Volo.Abp.Identity.IdentityRole" , b = >
{
b . Navigation ( "Claims" ) ;
} ) ;
modelBuilder . Entity ( "Volo.Abp.Identity.IdentityUser" , b = >
{
b . Navigation ( "Claims" ) ;
b . Navigation ( "Logins" ) ;
b . Navigation ( "OrganizationUnits" ) ;
b . Navigation ( "Roles" ) ;
b . Navigation ( "Tokens" ) ;
} ) ;
modelBuilder . Entity ( "Volo.Abp.Identity.OrganizationUnit" , b = >
{
b . Navigation ( "Roles" ) ;
} ) ;
modelBuilder . Entity ( "Volo.Docs.Documents.Document" , b = >
{
b . Navigation ( "Contributors" ) ;
} ) ;
#pragma warning restore 612, 618
#pragma warning restore 612, 618
}
}
}
}