first commit

This commit is contained in:
2026-03-09 22:09:10 +01:00
commit 7b6b294b0f
269 changed files with 10338 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BookHive.Migrations
{
/// <inheritdoc />
public partial class AddedContraint : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Reviews_BookId",
table: "Reviews");
migrationBuilder.CreateIndex(
name: "IX_Reviews_BookId_MemberId",
table: "Reviews",
columns: new[] { "BookId", "MemberId" },
unique: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Reviews_BookId_MemberId",
table: "Reviews");
migrationBuilder.CreateIndex(
name: "IX_Reviews_BookId",
table: "Reviews",
column: "BookId");
}
}
}