Adjust ChapterRating Entity slightly

This commit is contained in:
Amelia 2025-04-26 16:32:13 +02:00
parent 4f3cb6a407
commit f85703eca2
No known key found for this signature in database
GPG key ID: D6D0ECE365407EAA
9 changed files with 25 additions and 18 deletions

View file

@ -11,8 +11,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace API.Data.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20250425160251_ChapterRatings")]
partial class ChapterRatings
[Migration("20250426142952_ChapterRating")]
partial class ChapterRating
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -207,6 +207,9 @@ namespace API.Data.Migrations
b.Property<int>("AppUserId")
.HasColumnType("INTEGER");
b.Property<int>("Authority")
.HasColumnType("INTEGER");
b.Property<int>("ChapterId")
.HasColumnType("INTEGER");

View file

@ -5,7 +5,7 @@
namespace API.Data.Migrations
{
/// <inheritdoc />
public partial class ChapterRatings : Migration
public partial class ChapterRating : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
@ -20,6 +20,7 @@ namespace API.Data.Migrations
HasBeenRated = table.Column<bool>(type: "INTEGER", nullable: false),
Review = table.Column<string>(type: "TEXT", nullable: true),
Provider = table.Column<int>(type: "INTEGER", nullable: false),
Authority = table.Column<int>(type: "INTEGER", nullable: false),
SeriesId = table.Column<int>(type: "INTEGER", nullable: false),
ChapterId = table.Column<int>(type: "INTEGER", nullable: false),
VolumeId = table.Column<int>(type: "INTEGER", nullable: false),

View file

@ -204,6 +204,9 @@ namespace API.Data.Migrations
b.Property<int>("AppUserId")
.HasColumnType("INTEGER");
b.Property<int>("Authority")
.HasColumnType("INTEGER");
b.Property<int>("ChapterId")
.HasColumnType("INTEGER");