Fixed dockerfiles and fixed chapter upserts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-17 10:16:32 -04:00
parent d98324c11e
commit e4529e11c0
15 changed files with 659 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ namespace Treestar.Shared.Models.DBDomain
public DateTime? DateUpdated { get; set; }
public DateTime? LastContentFetch { get; set; }
[Required]
public string NovelUrl { get; set; }
public Novel Novel { get; set; }
protected bool Equals(Chapter other)
{

View File

@@ -1,7 +1,9 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace Treestar.Shared.Models.DBDomain
{
[Index(nameof(Email))]
public class User : BaseEntity
{
[Key]

View File

@@ -4,10 +4,10 @@ namespace Treestar.Shared.Models.DBDomain
{
public class UserNovel
{
[JsonIgnore]
public int UserId { get; set; }
public string NovelUrl { get; set; }
public Novel Novel { get; set; }
[JsonIgnore]
public User User { get; set; }
public int LastChapterRead { get; set; }
}