-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from EasyAbp/file-user
Introduce `FileUser` and file details panel
- Loading branch information
Showing
52 changed files
with
4,661 additions
and
224 deletions.
There are no files selected for viewing
1,704 changes: 1,704 additions & 0 deletions
1,704
...leManagement.Blazor.Server.Host/Migrations/20231218151037_AddedFileUserEntity.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
...asyAbp.FileManagement.Blazor.Server.Host/Migrations/20231218151037_AddedFileUserEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace EasyAbp.FileManagement.Blazor.Server.Host.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class AddedFileUserEntity : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "SoftDeletionToken", | ||
table: "EasyAbpFileManagementFiles", | ||
type: "nvarchar(450)", | ||
nullable: true, | ||
defaultValue: "", | ||
oldClrType: typeof(string), | ||
oldType: "nvarchar(450)", | ||
oldNullable: true); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "EasyAbpFileManagementUsers", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), | ||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), | ||
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), | ||
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), | ||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), | ||
Surname = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), | ||
IsActive = table.Column<bool>(type: "bit", nullable: false), | ||
EmailConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), | ||
PhoneNumber = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), | ||
PhoneNumberConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), | ||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), | ||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_EasyAbpFileManagementUsers", x => x.Id); | ||
}); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "EasyAbpFileManagementUsers"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "SoftDeletionToken", | ||
table: "EasyAbpFileManagementFiles", | ||
type: "nvarchar(450)", | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "nvarchar(450)", | ||
oldNullable: true, | ||
oldDefaultValue: ""); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
212 changes: 212 additions & 0 deletions
212
...Abp.FileManagement.HttpApi.Host/Migrations/20231218150923_AddedFileUserEntity.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.