|
|
|
@ -51,8 +51,8 @@ public static class AbpPermissionManagementDbContextModelBuilderExtensions |
|
|
|
b.Property(x => x.Name).HasMaxLength(PermissionDefinitionRecordConsts.MaxNameLength).IsRequired(); |
|
|
|
b.Property(x => x.ParentName).HasMaxLength(PermissionDefinitionRecordConsts.MaxNameLength); |
|
|
|
b.Property(x => x.DisplayName).HasMaxLength(PermissionDefinitionRecordConsts.MaxDisplayNameLength).IsRequired(); |
|
|
|
b.Property(x => x.Providers).HasMaxLength(PermissionDefinitionRecordConsts.MaxProvidersLength).IsRequired(); |
|
|
|
b.Property(x => x.StateCheckers).HasMaxLength(PermissionDefinitionRecordConsts.MaxStateCheckersLength).IsRequired(); |
|
|
|
b.Property(x => x.Providers).HasMaxLength(PermissionDefinitionRecordConsts.MaxProvidersLength); |
|
|
|
b.Property(x => x.StateCheckers).HasMaxLength(PermissionDefinitionRecordConsts.MaxStateCheckersLength); |
|
|
|
|
|
|
|
b.HasIndex(x => new { x.Name }).IsUnique(); |
|
|
|
b.HasIndex(x => new { x.GroupName }); |
|
|
|
|