#208 adding CoupletIndex to GanjoorUserBookmark model

This commit is contained in:
Hamid Reza Mohammadi 2021-09-27 16:29:59 +03:30
parent d5129f4884
commit 283954fbdb
4 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,7 @@ using RMuseum.DbContext;
namespace RMuseum.Migrations
{
[DbContext(typeof(RMuseumDbContext))]
[Migration("20210927065456_GanjoorUserBookmarks")]
[Migration("20210927125827_GanjoorUserBookmarks")]
partial class GanjoorUserBookmarks
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -986,6 +986,9 @@ namespace RMuseum.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("CoupletIndex")
.HasColumnType("int");
b.Property<DateTime>("DateTime")
.HasColumnType("datetime2");

View File

@ -14,6 +14,7 @@ namespace RMuseum.Migrations
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PoemId = table.Column<int>(type: "int", nullable: false),
CoupletIndex = table.Column<int>(type: "int", nullable: false),
VerseId = table.Column<int>(type: "int", nullable: false),
Verse2Id = table.Column<int>(type: "int", nullable: true),
Note = table.Column<string>(type: "nvarchar(max)", nullable: true),

View File

@ -984,6 +984,9 @@ namespace RMuseum.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("CoupletIndex")
.HasColumnType("int");
b.Property<DateTime>("DateTime")
.HasColumnType("datetime2");

View File

@ -33,6 +33,11 @@ namespace RMuseum.Models.Ganjoor
/// </summary>
public GanjoorPoem Poem { get; set; }
/// <summary>
/// couplet index
/// </summary>
public int CoupletIndex { get; set; }
/// <summary>
/// Verse Id
/// </summary>