| @@ -23,5 +23,6 @@ namespace Diligent.WebAPI.Data.Entities | |||
| public List<Tag> Tags { get; set; } | |||
| public bool Deleted { get; set; } = false; | |||
| public string? Note { get; set; } | |||
| } | |||
| } | |||
| @@ -0,0 +1,25 @@ | |||
| using Microsoft.EntityFrameworkCore.Migrations; | |||
| #nullable disable | |||
| namespace Diligent.WebAPI.Data.Migrations | |||
| { | |||
| public partial class addedNoteOnFileEntity : Migration | |||
| { | |||
| protected override void Up(MigrationBuilder migrationBuilder) | |||
| { | |||
| migrationBuilder.AddColumn<string>( | |||
| name: "Note", | |||
| table: "Files", | |||
| type: "nvarchar(max)", | |||
| nullable: true); | |||
| } | |||
| protected override void Down(MigrationBuilder migrationBuilder) | |||
| { | |||
| migrationBuilder.DropColumn( | |||
| name: "Note", | |||
| table: "Files"); | |||
| } | |||
| } | |||
| } | |||
| @@ -266,6 +266,9 @@ namespace Diligent.WebAPI.Data.Migrations | |||
| b.Property<Guid>("DocumentId") | |||
| .HasColumnType("uniqueidentifier"); | |||
| b.Property<string>("Note") | |||
| .HasColumnType("nvarchar(max)"); | |||
| b.Property<string>("Title") | |||
| .IsRequired() | |||
| .HasColumnType("nvarchar(max)"); | |||